dev-libs/*: import from portage

Just copying the ebuilds from portage/ so hopefully no functional changes.

BUG=chromium-os:26016
TEST=`cbuildbot arm-generic-full` works
TEST=build_packages+build_image for x86-alex boots

Change-Id: I906166d2db93aa0e7cfff8fd492669731db0d731
Reviewed-on: https://gerrit.chromium.org/gerrit/15594
Reviewed-by: David James <davidjames@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
Mike Frysinger 2012-02-01 18:42:40 -05:00 committed by Gerrit
parent b7e3540857
commit c8092f4072
23 changed files with 621 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST apr-util-1.3.9.tar.gz 790952 RMD160 f6180ba186e8ed73831b1da78de7ec57fc1cb162 SHA1 fd2a76352353e6bc2f7cc7da80e2ab3842795199 SHA256 20897069274a026057df26b90a6424da9d70318d930c99885c451d8753b8e4d9

View File

@ -0,0 +1,92 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/apr-util-1.3.9.ebuild,v 1.12 2009/11/04 12:12:05 arfrever Exp $
EAPI="2"
# Usually apr-util has the same PV as apr, but in case of security fixes, this may change.
#APR_PV=${PV}
APR_PV="1.3.8"
inherit autotools db-use eutils libtool multilib
DESCRIPTION="Apache Portable Runtime Utility Library"
HOMEPAGE="http://apr.apache.org/"
SRC_URI="mirror://apache/apr/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="1"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="berkdb doc freetds gdbm ldap mysql odbc postgres sqlite sqlite3"
RESTRICT="test"
RDEPEND="dev-libs/expat
>=dev-libs/apr-${APR_PV}:1
berkdb? ( =sys-libs/db-4* )
freetds? ( dev-db/freetds )
gdbm? ( sys-libs/gdbm )
ldap? ( =net-nds/openldap-2* )
mysql? ( =virtual/mysql-5* )
odbc? ( dev-db/unixODBC )
postgres? ( virtual/postgresql-base )
sqlite? ( dev-db/sqlite:0 )
sqlite3? ( dev-db/sqlite:3 )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
src_prepare() {
epatch "${FILESDIR}/${P}-support_berkeley_db-4.8.patch"
eautoreconf
elibtoolize
}
src_configure() {
local myconf
use ldap && myconf+=" --with-ldap"
if use berkdb; then
local db_version
db_version="$(db_findver sys-libs/db)" || die "Unable to find db version"
db_version="$(db_ver_to_slot "${db_version}")"
db_version="${db_version/\./}"
myconf+=" --with-dbm=db${db_version} --with-berkeley-db=$(db_includedir):/usr/$(get_libdir)"
else
myconf+=" --without-berkeley-db"
fi
econf --datadir=/usr/share/apr-util-1 \
--with-apr=/usr \
--with-expat=/usr \
$(use_with freetds) \
$(use_with gdbm) \
$(use_with mysql) \
$(use_with odbc) \
$(use_with postgres pgsql) \
$(use_with sqlite sqlite2) \
$(use_with sqlite3) \
${myconf}
}
src_compile() {
emake || die "emake failed"
if use doc; then
emake dox || die "emake dox failed"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGES NOTICE README
if use doc; then
dohtml -r docs/dox/html/* || die "dohtml failed"
fi
# This file is only used on AIX systems, which Gentoo is not,
# and causes collisions between the SLOTs, so remove it.
rm -f "${D}usr/$(get_libdir)/aprutil.exp"
}

View File

@ -0,0 +1,129 @@
--- build/dbm.m4
+++ build/dbm.m4
@@ -522,6 +522,25 @@
apu_db_version=4
fi
])
+dnl
+dnl APU_CHECK_DB48: is DB4.8 present?
+dnl
+dnl if present: sets apu_db_header, apu_db_lib, and apu_db_version
+dnl
+AC_DEFUN([APU_CHECK_DB48], [
+ places=$1
+ if test -z "$places"; then
+ places="std /usr/local/BerkeleyDB.4.8 /boot/home/config"
+ fi
+ APU_CHECK_BERKELEY_DB("4", "8", "-1",
+ "$places",
+ "db48/db.h db4/db.h db.h",
+ "db-4.8 db4-4.8 db48 db4 db"
+ )
+ if test "$apu_have_db" = "1"; then
+ apu_db_version=4
+ fi
+])
AC_DEFUN([APU_CHECK_DB], [
requested=$1
@@ -606,6 +625,12 @@
AC_MSG_ERROR(Berkeley db4 not found)
fi
;;
+ db48)
+ APU_CHECK_DB48("$check_places")
+ if test "$apu_db_version" != "4"; then
+ AC_MSG_ERROR(Berkeley db4 not found)
+ fi
+ ;;
default)
APU_CHECK_DB_ALL("$check_places")
;;
@@ -613,34 +638,37 @@
])
dnl
-dnl APU_CHECK_DB_ALL: Try all Berkeley DB versions, from 4.7 to 1.
+dnl APU_CHECK_DB_ALL: Try all Berkeley DB versions, from 4.8 to 1.
dnl
AC_DEFUN([APU_CHECK_DB_ALL], [
all_places=$1
- APU_CHECK_DB47("$all_places")
+ APU_CHECK_DB48("$all_places")
if test "$apu_db_version" != "4"; then
- APU_CHECK_DB46("$all_places")
+ APU_CHECK_DB47("$all_places")
if test "$apu_db_version" != "4"; then
- APU_CHECK_DB45("$all_places")
+ APU_CHECK_DB46("$all_places")
if test "$apu_db_version" != "4"; then
- APU_CHECK_DB44("$all_places")
+ APU_CHECK_DB45("$all_places")
if test "$apu_db_version" != "4"; then
- APU_CHECK_DB43("$all_places")
+ APU_CHECK_DB44("$all_places")
if test "$apu_db_version" != "4"; then
- APU_CHECK_DB42("$all_places")
+ APU_CHECK_DB43("$all_places")
if test "$apu_db_version" != "4"; then
- APU_CHECK_DB41("$all_places")
+ APU_CHECK_DB42("$all_places")
if test "$apu_db_version" != "4"; then
- APU_CHECK_DB4("$all_places")
+ APU_CHECK_DB41("$all_places")
if test "$apu_db_version" != "4"; then
- APU_CHECK_DB3("$all_places")
- if test "$apu_db_version" != "3"; then
- APU_CHECK_DB2("$all_places")
- if test "$apu_db_version" != "2"; then
- APU_CHECK_DB1("$all_places")
- if test "$apu_db_version" != "1"; then
- APU_CHECK_DB185("$all_places")
+ APU_CHECK_DB4("$all_places")
+ if test "$apu_db_version" != "4"; then
+ APU_CHECK_DB3("$all_places")
+ if test "$apu_db_version" != "3"; then
+ APU_CHECK_DB2("$all_places")
+ if test "$apu_db_version" != "2"; then
+ APU_CHECK_DB1("$all_places")
+ if test "$apu_db_version" != "1"; then
+ APU_CHECK_DB185("$all_places")
+ fi
fi
fi
fi
@@ -679,11 +707,11 @@
apu_db_version=0
AC_ARG_WITH(dbm, [APR_HELP_STRING([--with-dbm=DBM], [choose the DBM type to use.
- DBM={sdbm,gdbm,ndbm,db,db1,db185,db2,db3,db4,db41,db42,db43,db44,db45,db46,db47}])],
+ DBM={sdbm,gdbm,ndbm,db,db1,db185,db2,db3,db4,db41,db42,db43,db44,db45,db46,db47,db48}])],
[
if test "$withval" = "yes"; then
AC_MSG_ERROR([--with-dbm needs to specify a DBM type to use.
- One of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47])
+ One of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47, db48])
fi
requested="$withval"
], [
@@ -882,6 +910,10 @@
apu_use_db=1
apu_default_dbm=db4
;;
+ db48)
+ apu_use_db=1
+ apu_default_dbm=db4
+ ;;
default)
dnl ### use more sophisticated DBMs for the default?
apu_default_dbm="sdbm (default)"
@@ -889,7 +921,7 @@
;;
*)
AC_MSG_ERROR([--with-dbm=$look_for is an unknown DBM type.
- Use one of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47])
+ Use one of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47, db48])
;;
esac

View File

@ -0,0 +1 @@
DIST apr-1.3.9.tar.bz2 927657 RMD160 e90943275289113771b623c827ab3fb3c18064d8 SHA1 fb19ec11a15db03dcb9211f31012b079a522d1f0 SHA256 5705a393f48ce8652e2b9143668ed208d34e7ce702b28dd497353561a6ed2ce2

View File

@ -0,0 +1,77 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/apr-1.3.9.ebuild,v 1.9 2010/03/07 11:56:25 hollow Exp $
EAPI="2"
inherit autotools eutils libtool multilib
DESCRIPTION="Apache Portable Runtime Library"
HOMEPAGE="http://apr.apache.org/"
SRC_URI="mirror://apache/apr/${P}.tar.bz2"
LICENSE="Apache-2.0"
SLOT="1"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="doc older-kernels-compatibility +urandom"
RESTRICT="test"
DEPEND="doc? ( app-doc/doxygen )"
RDEPEND=""
src_prepare() {
AT_M4DIR="build" eautoreconf
elibtoolize
epatch "${FILESDIR}/config.layout.patch"
}
src_configure() {
local myconf
if use older-kernels-compatibility; then
local apr_cv_accept4 apr_cv_dup3 apr_cv_epoll_create1 apr_cv_sock_cloexec
export apr_cv_accept4="no"
export apr_cv_dup3="no"
export apr_cv_epoll_create1="no"
export apr_cv_sock_cloexec="no"
fi
if use urandom; then
myconf+=" --with-devrandom=/dev/urandom"
else
myconf+=" --with-devrandom=/dev/random"
fi
econf --enable-layout=gentoo \
--enable-nonportable-atomics \
--enable-threads \
${myconf}
# Make sure we use the system libtool.
sed -i 's,$(apr_builddir)/libtool,/usr/bin/libtool,' build/apr_rules.mk
sed -i 's,${installbuilddir}/libtool,/usr/bin/libtool,' apr-1-config
rm -f libtool
}
src_compile() {
emake -j1 || die "emake failed"
if use doc; then
emake -j1 dox || die "emake dox failed"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGES NOTICE
if use doc; then
dohtml -r docs/dox/html/* || die "dohtml failed"
fi
# This file is only used on AIX systems, which Gentoo is not,
# and causes collisions between the SLOTs, so remove it.
rm -f "${D}usr/$(get_libdir)/apr.exp"
}

View File

@ -0,0 +1,25 @@
--- config.layout.orig 2006-07-06 21:44:41.000000000 -0700
+++ config.layout 2006-07-06 21:46:26.000000000 -0700
@@ -229,3 +229,22 @@
infodir: ${exec_prefix}/share/info
libsuffix: -${APR_MAJOR_VERSION}
</Layout>
+
+# Gentoo layout
+<Layout gentoo>
+ prefix: /usr
+ exec_prefix: ${prefix}
+ bindir: ${exec_prefix}/bin
+ sbindir: ${exec_prefix}/bin
+ libdir: ${exec_prefix}/lib
+ libexecdir: ${exec_prefix}/modules
+ mandir: ${prefix}/man
+ sysconfdir: ${prefix}/conf
+ datadir: /usr/share/apr-${APR_MAJOR_VERSION}
+ installbuilddir: ${datadir}/build-${APR_MAJOR_VERSION}
+ includedir: ${prefix}/include/apr-${APR_MAJOR_VERSION}
+ localstatedir: ${prefix}
+ libsuffix: -${APR_MAJOR_VERSION}
+</Layout>
+
+

View File

@ -0,0 +1 @@
DIST fribidi-0.10.7.tar.gz 593309 RMD160 ddc37838a1cca880a7c63c0e77cff5ed7a3fac1d SHA1 b49568f87d72a1f513e533a99bf0143dc9fc3e64 SHA256 ecea548c16f5632f0d5dbc005e595bf2f4ebfbdb0bf74c8db347662f8475450b

View File

@ -0,0 +1,17 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/fribidi/fribidi-0.10.7.ebuild,v 1.17 2009/10/12 16:36:38 armin76 Exp $
DESCRIPTION="A free implementation of the unicode bidirectional algorithm"
HOMEPAGE="http://fribidi.org/"
SRC_URI="http://fribidi.org/download/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
IUSE=""
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS NEWS README ChangeLog THANKS TODO
}

View File

@ -0,0 +1 @@
DIST libevent-1.4.13-stable.tar.gz 499603 RMD160 b363aee80f73f27a68516d57c00592fe923aa40a SHA1 b0c4e9801b74f8bed1502353674288a5e4f1ca16 SHA256 d6fff1d7e7b79e6e083b482b0b55190f71ba597b55c3541d64c0572ddf0747a3

View File

@ -0,0 +1,53 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libevent/libevent-1.4.13.ebuild,v 1.10 2010/02/25 21:11:26 grobian Exp $
inherit autotools
MY_P="${P}-stable"
DESCRIPTION="A library to execute a function when a specific event occurs on a file descriptor"
HOMEPAGE="http://monkey.org/~provos/libevent/"
SRC_URI="http://monkey.org/~provos/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
IUSE=""
DEPEND=""
RDEPEND="!dev-libs/9libs"
S=${WORKDIR}/${MY_P}
pkg_setup() {
prevver=$(best_version ${CATEGORY}/${PN})
}
src_unpack() {
unpack ${A}
cd "${S}"
# don't waste time building tests/samples
sed -i \
-e 's|^\(SUBDIRS =.*\)sample test\(.*\)$|\1\2|' \
-e 's/libevent_extra_la_LIBADD =/& libevent.la/' \
Makefile.am || die "sed Makefile.am failed"
eautoreconf
}
src_test() {
einfo "Building tests"
cd test
make test || die "failed to build tests"
einfo "Running tests"
./test.sh > "${T}"/tests
cat "${T}"/tests
grep FAILED "${T}"/tests &>/dev/null && die "1 or more tests failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc README ChangeLog
}

View File

@ -1 +1,2 @@
DIST libgpg-error-1.7.tar.bz2 403751 RMD160 6f9004baf8e707b5995a276b5a454102405a6afc SHA1 bf8c6babe1e28cae7dd6374ca24ddcc42d57e902 SHA256 0301331b3e82f552c60c449388dc6d55d68cff4efa84523b352c4d522f4b5a91
DIST libgpg-error-1.10.tar.bz2 439213 RMD160 435fcf1c748ae6877b5de7f133a741cd55dc1140 SHA1 95b324359627fbcb762487ab6091afbe59823b29 SHA256 520629b4568b5c29b1991c8ffc267c8bdee5f223c7333c42a651b56f9b1c5431

View File

@ -0,0 +1,38 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgpg-error/libgpg-error-1.7.ebuild,v 1.10 2009/12/12 21:49:05 arfrever Exp $
EAPI="2"
inherit eutils libtool
DESCRIPTION="Contains error handling functions used by GnuPG software"
HOMEPAGE="http://www.gnupg.org/related_software/libgpg-error"
SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="common-lisp nls"
RDEPEND="nls? ( virtual/libintl )"
DEPEND="nls? ( sys-devel/gettext )"
src_prepare() {
epunt_cxx
# for BSD?
elibtoolize
}
src_configure() {
econf $(use_enable nls)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README
if ! use common-lisp; then
rm -fr "${D}usr/share/common-lisp"
fi
}

View File

@ -0,0 +1 @@
DIST libotf-0.9.8.tar.gz 389377 RMD160 d378376d6f22df3724536bb1405e79d2d14f25bb SHA1 3c9304d77073b60f362fb301bb981ab6a55f663e SHA256 a3a3396b3d368750249ffb060cddcfd6b919c79efcf01c2086913e137230fdb0

View File

@ -0,0 +1,40 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libotf/libotf-0.9.8.ebuild,v 1.11 2009/07/22 15:17:22 armin76 Exp $
WANT_AUTOMAKE=latest
WANT_AUTOCONF=latest
inherit autotools
DESCRIPTION="Library for handling OpenType fonts (OTF)"
HOMEPAGE="http://www.m17n.org/libotf/"
SRC_URI="http://www.m17n.org/libotf/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86"
IUSE="X"
RDEPEND=">=media-libs/freetype-2.1
X? (
x11-libs/libXaw
x11-libs/libICE
)"
DEPEND="${RDEPEND}
>=sys-apps/sed-4
dev-util/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"
use X || sed -i -e '/^bin_PROGRAMS/s/otfview//' example/Makefile.am || die
use X || eautoreconf
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS NEWS README ChangeLog
}

View File

@ -0,0 +1 @@
DIST libpthread-stubs-0.1.tar.bz2 194060 RMD160 25875ed40722ddff848c4d9836905600dcc784ba SHA1 34ef40880d0112dc6d32b386d59ce94f2c139eef SHA256 004dae11e11598584939d66d26a5ab9b48d08a00ca2d00ae8d38ee3ac7a15d65

View File

@ -0,0 +1,17 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpthread-stubs/libpthread-stubs-0.1.ebuild,v 1.12 2010/02/11 15:36:25 ulm Exp $
# Must be before x-modular eclass is inherited
#SNAPSHOT="yes"
inherit x-modular
DESCRIPTION="Pthread functions stubs for platforms missing them"
SRC_URI="http://xcb.freedesktop.org/dist/${P}.tar.bz2"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
RDEPEND=""
DEPEND=""

View File

@ -0,0 +1 @@
DIST libtasn1-2.4.tar.gz 1506263 RMD160 d6baebdf1e66ce5f2928e795211e9fc584b83fb9 SHA1 8cecbb6335e0294ddbcb3a798f0c61c7a2735f23 SHA256 c9bcf2383458335cbffdbcc1653e1926d693bad7031810fce68398d12d4f1f0f

View File

@ -0,0 +1,22 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtasn1/libtasn1-2.4.ebuild,v 1.3 2010/03/04 15:32:57 jer Exp $
DESCRIPTION="provides ASN.1 structures parsing capabilities for use with GNUTLS"
HOMEPAGE="http://www.gnu.org/software/libtasn1/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="GPL-3 LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="doc"
DEPEND=">=dev-lang/perl-5.6
sys-devel/bison"
RDEPEND=""
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README THANKS
use doc && dodoc doc/libtasn1.ps
}

View File

@ -0,0 +1 @@
DIST yaml-0.1.2.tar.gz 460685 RMD160 7da49975832132205efa0a96e1789e48ac341115 SHA1 db151c273474bb0b76b17974e7625d094c8cce53 SHA256 5beb94529cc7ac79b17e354f9b03aea311f5af17be5d48bc39e6f1db5059f70f

View File

@ -0,0 +1,37 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libyaml/libyaml-0.1.2.ebuild,v 1.8 2010/01/14 21:39:14 fauli Exp $
inherit eutils
MY_P="${P/lib}"
DESCRIPTION="YAML 1.1 parser and emitter written in C"
HOMEPAGE="http://pyyaml.org/wiki/LibYAML"
SRC_URI="http://pyyaml.org/download/${PN}/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-linux ~x86-macos"
IUSE="doc examples test"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
# conditionally remove tests
if use test ; then
sed -i -e 's: tests::g' Makefile*
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
use doc && dohtml -r doc/html/.
dodoc README
if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins tests/example-*.c
fi
}

View File

@ -0,0 +1 @@
DIST lzo-2.02.tar.gz 599387 RMD160 382154ec7d076e66fdcb6114818193dca180e3ac SHA1 82e1ae75663623516156542f4975a64d3a264b91 SHA256 a2fbecb4dd7c1dab498e3d8b5a0e574e6b8be09c63329b0d29c6fa9adb4a2fc5

View File

@ -0,0 +1,25 @@
--- asm/i386/src_nasm/asminit.def.orig 2005-12-29 22:51:45.000000000 +1100
+++ asm/i386/src_nasm/asminit.def 2005-12-29 22:54:11.000000000 +1100
@@ -32,6 +32,9 @@
; <markus@oberhumer.com>
; http://www.oberhumer.com/opensource/lzo/
;
+%ifidn __OUTPUT_FORMAT__,elf
+section .note.GNU-stack noalloc noexec nowrite progbits
+%endif
%define F(name) name
%ifidni __OUTPUT_FORMAT__,elf
--- asm/i386/src_gas/asminit.def.orig 2005-12-29 22:51:58.000000000 +1100
+++ asm/i386/src_gas/asminit.def 2005-12-29 22:55:29.000000000 +1100
@@ -32,6 +32,10 @@
<markus@oberhumer.com>
http://www.oberhumer.com/opensource/lzo/
*/
+#ifdef __ELF__
+.section .note.GNU-stack,"",@progbits
+#endif
+
#ifndef F
# define F(name) name

View File

@ -0,0 +1,39 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/lzo/lzo-2.02-r1.ebuild,v 1.18 2008/02/12 13:07:41 flameeyes Exp $
inherit eutils libtool
DESCRIPTION="An extremely fast compression and decompression library"
HOMEPAGE="http://www.oberhumer.com/opensource/lzo/"
SRC_URI="http://www.oberhumer.com/opensource/lzo/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="2"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="examples"
DEPEND=""
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-exec-stack.patch
elibtoolize
}
src_compile() {
econf --enable-shared || die
emake || die
}
src_install() {
make DESTDIR="${D}" install || die
dodoc AUTHORS BUGS ChangeLog NEWS README THANKS doc/LZO*
if use examples ; then
docinto examples
dodoc examples/*.c examples/Makefile
fi
}