diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2012-05-05 10:08:17 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2012-05-05 10:08:17 +0000 |
commit | 3f8ec1bcff6149c2be3888a962b4b35f3fdaedf3 (patch) | |
tree | a5e447adebb16f560359318a46858264400913e2 /sys-fs/e4rat | |
parent | THE FINAL dev-util/pkgconfig -> virtual/pkgconfig (diff) | |
download | gentoo-2-3f8ec1bcff6149c2be3888a962b4b35f3fdaedf3.tar.gz gentoo-2-3f8ec1bcff6149c2be3888a962b4b35f3fdaedf3.tar.bz2 gentoo-2-3f8ec1bcff6149c2be3888a962b4b35f3fdaedf3.zip |
Version bump. Bug #412825
(Portage version: 2.1.10.57/cvs/Linux x86_64)
Diffstat (limited to 'sys-fs/e4rat')
-rw-r--r-- | sys-fs/e4rat/ChangeLog | 9 | ||||
-rw-r--r-- | sys-fs/e4rat/e4rat-0.2.1-r1.ebuild | 27 | ||||
-rw-r--r-- | sys-fs/e4rat/e4rat-0.2.1.ebuild | 25 | ||||
-rw-r--r-- | sys-fs/e4rat/e4rat-0.2.2.ebuild | 56 | ||||
-rw-r--r-- | sys-fs/e4rat/files/e4rat-0.2.2-libdir.patch | 14 | ||||
-rw-r--r-- | sys-fs/e4rat/files/e4rat-0.2.2-shared-build.patch | 74 |
6 files changed, 152 insertions, 53 deletions
diff --git a/sys-fs/e4rat/ChangeLog b/sys-fs/e4rat/ChangeLog index 3c816acbf081..a760e3f5871d 100644 --- a/sys-fs/e4rat/ChangeLog +++ b/sys-fs/e4rat/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-fs/e4rat # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/e4rat/ChangeLog,v 1.4 2012/01/08 11:38:11 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/e4rat/ChangeLog,v 1.5 2012/05/05 10:08:17 hwoarang Exp $ + +*e4rat-0.2.2 (05 May 2012) + + 05 May 2012; Markos Chandras <hwoarang@gentoo.org> +e4rat-0.2.2.ebuild, + +files/e4rat-0.2.2-libdir.patch, +files/e4rat-0.2.2-shared-build.patch, + -e4rat-0.2.1-r1.ebuild, -e4rat-0.2.1.ebuild: + Version bump. Bug #412825 *e4rat-0.2.1-r2 (08 Jan 2012) diff --git a/sys-fs/e4rat/e4rat-0.2.1-r1.ebuild b/sys-fs/e4rat/e4rat-0.2.1-r1.ebuild deleted file mode 100644 index 1844bfff860a..000000000000 --- a/sys-fs/e4rat/e4rat-0.2.1-r1.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/e4rat/e4rat-0.2.1-r1.ebuild,v 1.1 2011/12/11 21:58:42 mgorny Exp $ - -EAPI=4 - -inherit cmake-utils - -DESCRIPTION="Toolset to accelerate the boot process and application startup" -HOMEPAGE="http://e4rat.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="dev-lang/perl - >=dev-libs/boost-1.42 - sys-fs/e2fsprogs - sys-process/audit" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-shared-build.patch - "${FILESDIR}"/${PN}-libdir.patch -) diff --git a/sys-fs/e4rat/e4rat-0.2.1.ebuild b/sys-fs/e4rat/e4rat-0.2.1.ebuild deleted file mode 100644 index 8c447ce67290..000000000000 --- a/sys-fs/e4rat/e4rat-0.2.1.ebuild +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/e4rat/e4rat-0.2.1.ebuild,v 1.2 2011/12/10 16:57:59 hwoarang Exp $ - -EAPI=4 - -inherit cmake-utils - -DESCRIPTION="Toolset to accelerate the boot process and application startup" -HOMEPAGE="http://e4rat.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="dev-lang/perl - >=dev-libs/boost-1.42[static-libs] - sys-fs/e2fsprogs - sys-process/audit" - -RDEPEND="${DEPEND}" - -CMAKE_BUILD_TYPE=release diff --git a/sys-fs/e4rat/e4rat-0.2.2.ebuild b/sys-fs/e4rat/e4rat-0.2.2.ebuild new file mode 100644 index 000000000000..6552177d4308 --- /dev/null +++ b/sys-fs/e4rat/e4rat-0.2.2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/e4rat/e4rat-0.2.2.ebuild,v 1.1 2012/05/05 10:08:17 hwoarang Exp $ + +EAPI=4 + +inherit cmake-utils linux-info + +DESCRIPTION="Toolset to accelerate the boot process and application startup" +HOMEPAGE="http://e4rat.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-lang/perl + >=dev-libs/boost-1.42 + sys-fs/e2fsprogs + sys-process/audit" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~AUDITSYSCALL" + +PATCHES=( + "${FILESDIR}"/${P}-shared-build.patch + "${FILESDIR}"/${P}-libdir.patch +) + +pkg_setup() { + check_extra_config +} + +src_install() { + cmake-utils_src_install + # relocate binaries to /sbin. If someone knows of a better way to do it + # please do tell me + dodir sbin + find "${D}"/usr/sbin -type f -exec mv {} "${D}"/sbin/. \; \ + || die +} + +pkg_postinst() { + elog + elog "Please consult the upstream wiki if you need help" + elog "configuring your system" + elog "http://e4rat.sourceforge.net/wiki/index.php/Main_Page" + elog + if has_version sys-apps/preload; then + elog "It appears you have sys-apps/preload installed. This may" + elog "has negative effects on ${PN}. You may want to disable preload" + elog "when using ${PN}." + elog "http://e4rat.sourceforge.net/wiki/index.php/Main_Page#Debian.2FUbuntu" + fi +} diff --git a/sys-fs/e4rat/files/e4rat-0.2.2-libdir.patch b/sys-fs/e4rat/files/e4rat-0.2.2-libdir.patch new file mode 100644 index 000000000000..eaa2695d7872 --- /dev/null +++ b/sys-fs/e4rat/files/e4rat-0.2.2-libdir.patch @@ -0,0 +1,14 @@ +Index: e4rat-0.2.2/src/CMakeLists.txt +=================================================================== +--- e4rat-0.2.2.orig/src/CMakeLists.txt ++++ e4rat-0.2.2/src/CMakeLists.txt +@@ -170,8 +170,7 @@ endif(NOT BUILD_CORE_LIBRARY_STATIC) + + INSTALL(TARGETS ${${PROJECT_NAME}_TARGETS} + RUNTIME DESTINATION "sbin" +- LIBRARY DESTINATION "lib" +- ARCHIVE DESTINATION "lib" ++ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" + ) + + INSTALL(DIRECTORY DESTINATION "/var/lib/${PROJECT_NAME}") diff --git a/sys-fs/e4rat/files/e4rat-0.2.2-shared-build.patch b/sys-fs/e4rat/files/e4rat-0.2.2-shared-build.patch new file mode 100644 index 000000000000..636eb52fb612 --- /dev/null +++ b/sys-fs/e4rat/files/e4rat-0.2.2-shared-build.patch @@ -0,0 +1,74 @@ +Index: e4rat-0.2.2/CMakeLists.txt +=================================================================== +--- e4rat-0.2.2.orig/CMakeLists.txt ++++ e4rat-0.2.2/CMakeLists.txt +@@ -14,7 +14,6 @@ IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_D + set(CMAKE_INSTALL_PREFIX "/" CACHE PATH "e4rat install prefix" FORCE) + ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + +-set(Boost_USE_STATIC_LIBS ON) + set(Boost_USE_MULTITHREADED OFF) + add_definitions(-DBOOST_FILESYSTEM_VERSION=2) + find_package(Boost 1.41 COMPONENTS system filesystem regex REQUIRED) +Index: e4rat-0.2.2/src/CMakeLists.txt +=================================================================== +--- e4rat-0.2.2.orig/src/CMakeLists.txt ++++ e4rat-0.2.2/src/CMakeLists.txt +@@ -131,21 +131,12 @@ IF(CMAKE_BUILD_TYPE STREQUAL "debug") + ) + ENDIF(CMAKE_BUILD_TYPE STREQUAL "debug") + +-# On 64 bit architecture you cannot link a static to a shared library +-# Therefore -static-libstdc++ will fail. +-if(BUILD_CORE_LIBRARY_STATIC) +- add_library(${PROJECT_NAME}-core STATIC +- ${${PROJECT_NAME}-core_SRC} +- ) +-else(BUILD_CORE_LIBRARY_STATIC) +- add_library(${PROJECT_NAME}-core SHARED +- ${${PROJECT_NAME}-core_SRC} +- ) +- set_target_properties(${PROJECT_NAME}-core PROPERTIES +- SOVERSION 0 +- LINK_FLAGS "-static-libgcc -static-libstdc++" +- ) +-endif(BUILD_CORE_LIBRARY_STATIC) ++add_library(${PROJECT_NAME}-core SHARED ++ ${${PROJECT_NAME}-core_SRC} ++) ++set_target_properties(${PROJECT_NAME}-core PROPERTIES ++ SOVERSION 0 ++) + + target_link_libraries(${PROJECT_NAME}-core + ${${PROJECT_NAME}_LIBRARIES} +@@ -158,15 +149,13 @@ foreach( EXE ${PROJECT_NAME}-collect + TARGET_LINK_LIBRARIES(${EXE} + ${PROJECT_NAME}-core + ) +- set_target_properties(${EXE} PROPERTIES +- LINK_FLAGS "-static-libgcc -static-libstdc++" +- ) + endforeach( EXE ) + + ### + # install project targets + ### + set(${PROJECT_NAME}_TARGETS ++ ${PROJECT_NAME}-core + ${PROJECT_NAME}-collect + ${PROJECT_NAME}-preload + ${PROJECT_NAME}-realloc +Index: e4rat-0.2.2/src/cmake/Findaudit.cmake +=================================================================== +--- e4rat-0.2.2.orig/src/cmake/Findaudit.cmake ++++ e4rat-0.2.2/src/cmake/Findaudit.cmake +@@ -1,7 +1,7 @@ + FIND_PATH(AUDIT_INCLUDE_DIR libaudit.h /usr/include + /usr/local/include) + +-FIND_LIBRARY(AUDIT_LIBRARY NAMES libaudit.a PATH /usr/lib /usr/local/lib) ++FIND_LIBRARY(AUDIT_LIBRARY NAMES audit PATH /usr/lib /usr/local/lib) + + IF (AUDIT_INCLUDE_DIR AND AUDIT_LIBRARY) + SET(AUDIT_FOUND TRUE) |