net-nds/yap2lc: initial checkin
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2563 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
@@ -21,27 +21,28 @@ IUSE="berkdb"
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/yap2lc-0.5.9-asneeded-1.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
local myconf
|
||||
|
||||
if use berkdb; then
|
||||
local db_version
|
||||
db_version="$(db_findver sys-libs/db)" || die "Unable to find Berkeley DB version"
|
||||
db_version="$(db_ver_to_slot "${db_version}")"
|
||||
db_version="${db_version/\./}"
|
||||
myconf+=" --with-bdb --with-bdb-lib=/usr/$(get_libdir) --with-bdb-inc=$(db_includedir 2> /dev/null)"
|
||||
#sed -i "s!-ldb!-ldb${db_version}!" configure
|
||||
else
|
||||
myconf+=" --without-bdb"
|
||||
fi
|
||||
if use berkdb; then
|
||||
local db_version
|
||||
db_version="$(db_findver sys-libs/db)" || die "Unable to find Berkeley DB version"
|
||||
db_version="$(db_ver_to_slot "${db_version}")"
|
||||
db_version="${db_version/\./}"
|
||||
myconf+=" --with-bdb --with-bdb-lib=/usr/$(get_libdir) --with-bdb-inc=$(db_includedir 2> /dev/null)"
|
||||
#sed -i "s!-ldb!-ldb${db_version}!" configure
|
||||
else
|
||||
myconf+=" --without-bdb"
|
||||
fi
|
||||
|
||||
econf ${myconf}
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN} || die "dobin failed"
|
||||
dodoc CHANGELOG README
|
||||
docinto samples
|
||||
dodoc samples/*
|
||||
dobin ${PN} || die "dobin failed"
|
||||
dodoc CHANGELOG README
|
||||
docinto samples
|
||||
dodoc samples/*
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user