From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- app-arch/lz4/Manifest | 2 + app-arch/lz4/files/lz4-0_p106-cflags.patch | 22 ++++++++ .../lz4/files/lz4-0_p106-install-to-bindir.patch | 51 ++++++++++++++++++ app-arch/lz4/lz4-0_p106-r1.ebuild | 62 ++++++++++++++++++++++ app-arch/lz4/lz4-0_p120.ebuild | 49 +++++++++++++++++ app-arch/lz4/lz4-9999.ebuild | 44 +++++++++++++++ app-arch/lz4/metadata.xml | 11 ++++ 7 files changed, 241 insertions(+) create mode 100644 app-arch/lz4/Manifest create mode 100644 app-arch/lz4/files/lz4-0_p106-cflags.patch create mode 100644 app-arch/lz4/files/lz4-0_p106-install-to-bindir.patch create mode 100644 app-arch/lz4/lz4-0_p106-r1.ebuild create mode 100644 app-arch/lz4/lz4-0_p120.ebuild create mode 100644 app-arch/lz4/lz4-9999.ebuild create mode 100644 app-arch/lz4/metadata.xml (limited to 'app-arch/lz4') diff --git a/app-arch/lz4/Manifest b/app-arch/lz4/Manifest new file mode 100644 index 000000000000..87be5e22b141 --- /dev/null +++ b/app-arch/lz4/Manifest @@ -0,0 +1,2 @@ +DIST lz4-0_p106.tar.xz 129352 SHA256 a9a09c4ebb962995d10e7e4f7d9224aaa93f308899de18a414948a58e87b6f22 SHA512 8b2bafbf78be7c42831e264d7acdca12712c88369cecdb3aa4621c84bb6b450c372f5153f7c3939a5f70d5810c62b98993697397319d286a1bb51b1e4a6ecde6 WHIRLPOOL fc5bb47b73606b125d8e155365d1fe101083e68e684ffd6014440e0f1416f1f6ecc64b797083e6939bd3e8cd42018e46a1864ae4542160c96933a47df9421a42 +DIST lz4-r120.tar.gz 161950 SHA256 fa02b1bcc26529c27cff0883d830914bdd1ba41a87035313e1050302f17e4b07 SHA512 8b27c57737ba4c2c8e4f00f7ce13f6edc91f74885bad66dd521dfe85d427e0fd78a300896d599bb8642a34fba78446daf207d1b2fd8e91543d4c093e53694e86 WHIRLPOOL 6a0cd7f8caf9799130b13b3f282197b5ef20fb987f0f5f6911f71a0f5d5d37c542976be5f13bdd2e21a8edd0a6cc8408fcc0f69f6354a0fbc7df75b22fb9de91 diff --git a/app-arch/lz4/files/lz4-0_p106-cflags.patch b/app-arch/lz4/files/lz4-0_p106-cflags.patch new file mode 100644 index 000000000000..6fc0fbb47dd8 --- /dev/null +++ b/app-arch/lz4/files/lz4-0_p106-cflags.patch @@ -0,0 +1,22 @@ +--- a/cmake/pack/CMakeLists.txt ++++ b/cmake/pack/CMakeLists.txt +@@ -36,7 +36,7 @@ + ADD_DEFINITIONS("-Wundef") + ADD_DEFINITIONS("-Wcast-align") + ADD_DEFINITIONS("-Wno-implicit-function-declaration") +-ADD_DEFINITIONS("-O3 -march=native -std=c99") ++ADD_DEFINITIONS("-std=c99") + INCLUDE_DIRECTORIES (${SRC_DIR}) + + +--- a/cmake/CMakeLists.txt ++++ b/cmake/CMakeLists.txt +@@ -99,7 +99,7 @@ + ADD_DEFINITIONS("-Wundef") + ADD_DEFINITIONS("-Wcast-align") + ADD_DEFINITIONS("-Wno-implicit-function-declaration") +-ADD_DEFINITIONS("-Os -march=native -std=c99") ++ADD_DEFINITIONS("-std=c99") + INCLUDE_DIRECTORIES (${SRC_DIR}) + + diff --git a/app-arch/lz4/files/lz4-0_p106-install-to-bindir.patch b/app-arch/lz4/files/lz4-0_p106-install-to-bindir.patch new file mode 100644 index 000000000000..521b1bfc58d2 --- /dev/null +++ b/app-arch/lz4/files/lz4-0_p106-install-to-bindir.patch @@ -0,0 +1,51 @@ +diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt +index 496c076..ce3fab1 100644 +--- a/cmake/CMakeLists.txt ++++ b/cmake/CMakeLists.txt +@@ -41,11 +41,11 @@ endif() + if (CMAKE_SYSTEM_PROCESSOR STREQUAL "64bit") + message(STATUS "Build 64bit executable binary") + add_executable(lz4c64 ${LZ4_SRCS}) +- install(TARGETS lz4c64 RUNTIME DESTINATION "./") ++ install(TARGETS lz4c64 RUNTIME DESTINATION "bin/") + if(NOT BUILD_SHARED_LIBS) + message(STATUS "Build 32bit executable binary") + add_executable(lz4c32 ${LZ4_SRCS}) +- install(TARGETS lz4c32 RUNTIME DESTINATION "./") ++ install(TARGETS lz4c32 RUNTIME DESTINATION "bin/") + + SET_TARGET_PROPERTIES(lz4c32 PROPERTIES + COMPILE_FLAGS PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32") +@@ -53,7 +53,7 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "64bit") + else() + message(STATUS "Build 32bit executable binary") + add_executable(lz4c32 ${LZ4_SRCS}) +- install(TARGETS lz4c32 RUNTIME DESTINATION "./") ++ install(TARGETS lz4c32 RUNTIME DESTINATION "bin/") + endif() + + if(BUILD_SHARED_LIBS) +diff --git a/cmake/pack/CMakeLists.txt b/cmake/pack/CMakeLists.txt +index a9b0557..e85416e 100644 +--- a/cmake/pack/CMakeLists.txt ++++ b/cmake/pack/CMakeLists.txt +@@ -48,16 +48,16 @@ set(FUZZER_SRCS ${SRC_DIR}lz4.c ${SRC_DIR}lz4hc.c ${SRC_DIR}lz4.h ${SRC_DIR}fuzz + # EXECUTABLES FOR 32 Bit and 64 versions + if(CMAKE_SYSTEM_PROCESSOR STREQUAL "64bit") + add_executable(lz4c32 ${LZ4_SRCS}) +- install(TARGETS lz4c32 RUNTIME DESTINATION "./") ++ install(TARGETS lz4c32 RUNTIME DESTINATION "bin/") + SET_TARGET_PROPERTIES(lz4c32 PROPERTIES + COMPILE_FLAGS PROPERTIES COMPILE_FLAGS "-m32 -Os" LINK_FLAGS "-m32") + endif() + + add_executable(lz4c ${LZ4_SRCS}) +-install(TARGETS lz4c RUNTIME DESTINATION "./") ++install(TARGETS lz4c RUNTIME DESTINATION "bin/") + + add_executable(fuzzer ${FUZZER_SRCS}) +-install(TARGETS fuzzer RUNTIME DESTINATION "./") ++install(TARGETS fuzzer RUNTIME DESTINATION "bin/") + + #target_link_libraries(lz4 ${LZ4_SRCS_LIB}) + ####################### CPACK PACKAGING ################### diff --git a/app-arch/lz4/lz4-0_p106-r1.ebuild b/app-arch/lz4/lz4-0_p106-r1.ebuild new file mode 100644 index 000000000000..22fac7bc2e25 --- /dev/null +++ b/app-arch/lz4/lz4-0_p106-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils multilib + +CMAKE_USE_DIR="${S}/cmake" + +if [ ${PV} == "9999" ] ; then + inherit subversion + ESVN_REPO_URI="http://lz4.googlecode.com/svn/trunk/" + ESVN_PROJECT="lz4-read-only" +else + SRC_URI="http://dev.gentoo.org/~ryao/dist/${P}.tar.xz" + KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux" +fi + +DESCRIPTION="Extremely Fast Compression algorithm" +HOMEPAGE="https://code.google.com/p/lz4/" + +LICENSE="BSD-2" +SLOT="0" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_prepare() { + if [ ${PV} == "9999" ] + then + subversion_src_prepare + else + epatch "${FILESDIR}/${P}-install-to-bindir.patch" + epatch "${FILESDIR}/${P}-cflags.patch" + fi + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=(-DBUILD_SHARED_LIBS=ON) + cmake-utils_src_configure +} + +src_install() { + dodir /usr + dodir "/usr/$(get_libdir)" + ln -s "$(get_libdir)" "${ED}usr/lib" || \ + die "Cannot create temporary symlink from usr/lib to usr/$(get_libdir)" + + cmake-utils_src_install + + rm "${ED}usr/lib" + + if [ -f "${ED}usr/bin/lz4c64" ] + then + dosym lz4c64 /usr/bin/lz4c + else + dosym lz4c32 /usr/bin/lz4c + fi +} diff --git a/app-arch/lz4/lz4-0_p120.ebuild b/app-arch/lz4/lz4-0_p120.ebuild new file mode 100644 index 000000000000..5a0e244bcb01 --- /dev/null +++ b/app-arch/lz4/lz4-0_p120.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib multilib-minimal toolchain-funcs + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Cyan4973/lz4.git" + EGIT_BRANCH=dev +else + MY_PV="r${PV##0_p}" + MY_P="${PN}-${MY_PV}" + SRC_URI="https://github.com/Cyan4973/lz4/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" + KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux" + S="${WORKDIR}/${MY_P}" +fi + +DESCRIPTION="Extremely Fast Compression algorithm" +HOMEPAGE="https://code.google.com/p/lz4/" + +LICENSE="BSD-2 GPL-2" +SLOT="0" +IUSE="test valgrind" + +DEPEND="test? ( valgrind? ( dev-util/valgrind ) )" + +src_prepare() { + if ! use valgrind; then + sed -i -e '/^test:/s|test-mem||g' programs/Makefile || die + fi + multilib_copy_sources +} + +multilib_src_compile() { + tc-export CC AR + # we must not use the 'all' target since it builds test programs + # & extra -m32 executables + emake + emake -C programs +} + +multilib_src_install() { + emake install DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}"/usr/$(get_libdir) +} diff --git a/app-arch/lz4/lz4-9999.ebuild b/app-arch/lz4/lz4-9999.ebuild new file mode 100644 index 000000000000..32b103c727c8 --- /dev/null +++ b/app-arch/lz4/lz4-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib multilib-minimal toolchain-funcs + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Cyan4973/lz4.git" + EGIT_BRANCH=dev +else + SRC_URI="http://dev.gentoo.org/~ryao/dist/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +DESCRIPTION="Extremely Fast Compression algorithm" +HOMEPAGE="https://code.google.com/p/lz4/" + +LICENSE="BSD-2 GPL-2" +SLOT="0" +IUSE="test" + +RDEPEND="" +DEPEND="test? ( dev-util/valgrind )" + +src_prepare() { + multilib_copy_sources +} + +multilib_src_compile() { + tc-export CC AR + # we must not use the 'all' target since it builds test programs + # & extra -m32 executables + emake + emake -C programs +} + +multilib_src_install() { + emake install DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}"/usr/$(get_libdir) +} diff --git a/app-arch/lz4/metadata.xml b/app-arch/lz4/metadata.xml new file mode 100644 index 000000000000..1decb7dd7609 --- /dev/null +++ b/app-arch/lz4/metadata.xml @@ -0,0 +1,11 @@ + + + + + ryao@gentoo.org + Richard Yao + + +Enable usage of dev-util/valgrind in tests + + -- cgit v1.2.3-65-gdbad