summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-02-03 21:47:57 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-02-03 21:47:57 +0000
commita33b0cf742a6081627f036ad7946e81d08955ba4 (patch)
tree8bcc02e08a053e51fbc942419f97467ebef4f0d5 /sys-libs/pwdb/pwdb-0.62-r1.ebuild
parenthouse cleaning (diff)
downloadgentoo-2-a33b0cf742a6081627f036ad7946e81d08955ba4.tar.gz
gentoo-2-a33b0cf742a6081627f036ad7946e81d08955ba4.tar.bz2
gentoo-2-a33b0cf742a6081627f036ad7946e81d08955ba4.zip
Multilib fixes.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sys-libs/pwdb/pwdb-0.62-r1.ebuild')
-rw-r--r--sys-libs/pwdb/pwdb-0.62-r1.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/sys-libs/pwdb/pwdb-0.62-r1.ebuild b/sys-libs/pwdb/pwdb-0.62-r1.ebuild
new file mode 100644
index 000000000000..fbdf2e87d663
--- /dev/null
+++ b/sys-libs/pwdb/pwdb-0.62-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pwdb/pwdb-0.62-r1.ebuild,v 1.1 2005/02/03 21:47:57 eradicator Exp $
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Password database"
+HOMEPAGE="http://packages.gentoo.org/ebuilds/?pwdb-${PVR}"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+#KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
+# -r1 just has some multilib cleanups
+KEYWORDS="~amd64"
+IUSE="selinux"
+
+DEPEND="virtual/libc
+ selinux? ( sys-libs/libselinux )"
+
+src_unpack () {
+ unpack ${A}
+
+ cd ${S}
+ # Uses gcc as linker needed for hppa, but good idea in general.
+ epatch ${FILESDIR}/${P}-use-gcc-as-linker.patch
+
+ use selinux && epatch ${FILESDIR}/${P}-selinux.patch
+
+ sed -i \
+ -e "s/^DIRS = .*/DIRS = libpwdb/" \
+ -e "s:EXTRAS += :EXTRAS += ${CFLAGS} :" \
+ Makefile
+ sed -i -e "s/=gcc/=$(tc-getCC)/g" default.defs
+}
+
+src_compile() {
+ filter-flags -fstack-protector
+
+ # author has specified application to be compiled with `-g`
+ # no problem, but with ccc `-g` disables optimisation to make
+ # debugging easier, `-g3` enables debugging and optimisation
+ [ "${ARCH}" = "alpha" -a "${CC}" = "ccc" ] && append-flags -g3
+
+ emake || die
+}
+
+src_install() {
+ dodir /$(get_libdir) /usr/$(get_libdir) /usr/include/pwdb
+ make \
+ INCLUDED=${D}/usr/include/pwdb \
+ LIBDIR=${D}/$(get_libdir) \
+ LDCONFIG="echo" \
+ install || die
+
+ preplib /
+ mv ${D}/$(get_libdir)/*.a ${D}/usr/$(get_libdir)
+
+ # See bug #4411 for more info
+ gen_usr_ldscript libpwdb.so
+
+ insinto /etc
+ doins conf/pwdb.conf
+
+ dodoc CHANGES CREDITS README
+ dohtml -r doc
+ docinto txt
+ dodoc doc/*.txt
+}