Update cc65 & liblightscribe; start adding required libs for fedora-ds

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@149 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2007-08-07 07:35:04 +00:00
parent cb7fc5f41e
commit 42678a6883
18 changed files with 402 additions and 0 deletions

12
dev-libs/mozldap/Manifest Normal file
View File

@@ -0,0 +1,12 @@
AUX mozldap-6.0.4-pkgconfig.patch 714 RMD160 e0380bc0d6af49924c9e599f3ce8e1512ae8105f SHA1 d427f59df496bf5eff0aa5b33918a19142bce22c SHA256 d93fc59fa49f825484d8456288d6d98aaaccf4ee729ca27f0887a9ba6d812a10
MD5 ac5146836b8b1d824aed7514312c9872 files/mozldap-6.0.4-pkgconfig.patch 714
RMD160 e0380bc0d6af49924c9e599f3ce8e1512ae8105f files/mozldap-6.0.4-pkgconfig.patch 714
SHA256 d93fc59fa49f825484d8456288d6d98aaaccf4ee729ca27f0887a9ba6d812a10 files/mozldap-6.0.4-pkgconfig.patch 714
DIST mozldap-6.0.4.tar.gz 706636 RMD160 55c0dc58c0fd199aef3c986478237e96d0f1c389 SHA1 516d00f052aa9315de6506a51e12400d1707c6db SHA256 0f3710e5c69160f411b7e3622cef420378f51c2aec38e87a4f0ff47028b060db
EBUILD mozldap-6.0.4.ebuild 3088 RMD160 dbb5cabf53dc05c586cde047ff2c5269026fa7b4 SHA1 43869f61f9752f6e55f29884adbb2a01603251a5 SHA256 6028fccf27696770a2fe96bda278485591c3555fe96396ab974bb5ecb74e759b
MD5 e3a94ba75f16052abdd80463ff164005 mozldap-6.0.4.ebuild 3088
RMD160 dbb5cabf53dc05c586cde047ff2c5269026fa7b4 mozldap-6.0.4.ebuild 3088
SHA256 6028fccf27696770a2fe96bda278485591c3555fe96396ab974bb5ecb74e759b mozldap-6.0.4.ebuild 3088
MD5 359083adcc58b99c3b2d18ce1a46ecdc files/digest-mozldap-6.0.4 241
RMD160 7aa1c47c47f8dcf606222a1a0eb57667d5c4f1b7 files/digest-mozldap-6.0.4 241
SHA256 50d3334d916996d5b499a13698e332de230b28bbe4366bf216a88abadbfbe841 files/digest-mozldap-6.0.4 241

View File

@@ -0,0 +1,3 @@
MD5 f08dcb93dc64ae1c661d91125cd7ec3b mozldap-6.0.4.tar.gz 706636
RMD160 55c0dc58c0fd199aef3c986478237e96d0f1c389 mozldap-6.0.4.tar.gz 706636
SHA256 0f3710e5c69160f411b7e3622cef420378f51c2aec38e87a4f0ff47028b060db mozldap-6.0.4.tar.gz 706636

View File

@@ -0,0 +1,12 @@
diff -uNr mozldap-6.0.4.orig/mozilla/directory/c-sdk/mozldap.pc.in mozldap-6.0.4/mozilla/directory/c-sdk/mozldap.pc.in
--- mozldap-6.0.4.orig/mozilla/directory/c-sdk/mozldap.pc.in 2006-10-06 01:01:43.000000000 +0200
+++ mozldap-6.0.4/mozilla/directory/c-sdk/mozldap.pc.in 2007-08-06 21:27:09.000000000 +0200
@@ -11,6 +11,6 @@
Name: mozldap
Description: Mozilla LDAP C SDK
Version: %MOZLDAP_VERSION%
-Requires: nspr >= %NSPR_VERSION% , nss >= %NSS_VERSION%
-Libs: -lssldap%libsuffix% -lprldap%libsuffix% -lldap%libsuffix%
+Requires: nspr >= %NSPR_VERSION% , nss >= %NSS_VERSION% , svrcore >= %SVRCORE_VERSION%
+Libs: -L${libdir} -lssldap%libsuffix% -lprldap%libsuffix% -lldap%libsuffix%
Cflags: -I${includedir}

View File

@@ -0,0 +1,98 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils multilib versionator
DESCRIPTION="Mozilla LDAP C SDK"
HOMEPAGE="http://wiki.mozilla.org/LDAP_C_SDK"
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v${PV}/src/${P}.tar.gz"
LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ipv6 debug sasl"
DEPEND=">=dev-libs/nss-3.11.4
>=dev-libs/nspr-4.0.1
>=dev-libs/svrcore-4.0.0"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch ${FILESDIR}/${P}-pkgconfig.patch
}
src_compile() {
cd mozilla/directory/c-sdk
if use amd64 ; then
myconf="${myconf} --enable-64bit"
else
myconf=""
fi
if use ipv6; then
myconf="${myconf} --enable-ipv6"
fi
myconf="${myconf} --libdir=/usr/$(get_libdir)/mozldap"
econf $(use_enable debug) $(use_with sasl) \
--with-svrcore-inc=/usr/include/svrcore \
--with-svrcore-lib=/usr/$(get_libdir)/svrcore \
--enable-clu \
--enable-optimize \
${myconf} || die "econf failed"
make || die
}
src_install () {
# Their build system is royally fucked, as usual
cd ${S}/mozilla/directory/c-sdk
sed -e "s,%libdir%,\$\{exec_prefix\}/$(get_libdir)/${PN},g" \
-e "s,%prefix%,/usr,g" \
-e "s,%major%,$(get_major_version ${PV}),g" \
-e "s,%minor%,$(get_version_component_range 2 ${PV}),g" \
-e "s,%submin%,$(get_version_component_range 3 ${PV}),g" \
-e "s,%libsuffix%,$(get_major_version ${PV})$(get_version_component_range 2 ${PV}),g" \
-e "s,%bindir%,\$\{exec_prefix\}/$(get_libdir)/${PN},g" \
-e "s,%exec_prefix%,\$\{prefix\},g" \
-e "s,%includedir%,\$\{exec_prefix\}/include/${PN},g" \
-e "s,%NSPR_VERSION%,$(pkg-config --modversion nspr),g" \
-e "s,%NSS_VERSION%,$(pkg-config --modversion nss),g" \
-e "s,%SVRCORE_VERSION%,$(pkg-config --modversion svrcore),g" \
-e "s,%MOZLDAP_VERSION%,${PV},g" \
${PN}.pc.in > ${PN}.pc
make install
rm -rf ${S}/mozilla/dist/bin/lib*.so
rm -rf ${S}/mozilla/dist/public/ldap-private
exeinto /usr/$(get_libdir)/mozldap
doexe ${S}/mozilla/dist/lib/*so*
doexe ${S}/mozilla/dist/lib/*.a
doexe ${S}/mozilla/dist/bin/*
# move the headers around
insinto /usr/include/mozldap
doins ${S}/mozilla/dist/public/ldap/*.h
# add sample config
insinto /usr/share/mozldap
doins ${S}/mozilla/dist/etc/*.conf
#and while at it move them to files with versions-ending
#and link them back :)
cd ${D}/usr/$(get_libdir)/mozldap
for file in *.so; do
mv ${file} ${file}.$(get_major_version ${PV}).$(get_version_component_range 2 ${PV})
ln -s ${file}.$(get_major_version ${PV}).$(get_version_component_range 2 ${PV}) ${file}
ln -s ${file}.$(get_major_version ${PV}).$(get_version_component_range 2 ${PV}) ${file}.$(get_major_version ${PV})
done
# cope with libraries being in /usr/lib/mozldap
dodir /etc/env.d
echo "LDPATH=/usr/$(get_libdir)/mozldap" > ${D}/etc/env.d/08mozldap
# create pkg-config file
insinto /usr/$(get_libdir)/pkgconfig/
doins ${S}/mozilla/directory/c-sdk/mozldap.pc
}