summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-03-25 20:29:17 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-03-25 20:29:17 +0000
commit117eeba3663bc67f41bbfb68f0005570c03c65e7 (patch)
tree5a72e2ff7c17f3bc6b7ac806832e3ad9c7b4a5da /dev-libs/bglibs
parent2.6.5-r1: (diff)
downloadgentoo-2-117eeba3663bc67f41bbfb68f0005570c03c65e7.tar.gz
gentoo-2-117eeba3663bc67f41bbfb68f0005570c03c65e7.tar.bz2
gentoo-2-117eeba3663bc67f41bbfb68f0005570c03c65e7.zip
Bug #300804: fix compat symlinks for multilib.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/bglibs')
-rw-r--r--dev-libs/bglibs/ChangeLog8
-rw-r--r--dev-libs/bglibs/bglibs-1.106-r1.ebuild77
2 files changed, 84 insertions, 1 deletions
diff --git a/dev-libs/bglibs/ChangeLog b/dev-libs/bglibs/ChangeLog
index fd2b0a44c1c5..3590b506241c 100644
--- a/dev-libs/bglibs/ChangeLog
+++ b/dev-libs/bglibs/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/bglibs
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/bglibs/ChangeLog,v 1.50 2010/01/13 08:12:08 bangert Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/bglibs/ChangeLog,v 1.51 2010/03/25 20:29:17 robbat2 Exp $
+
+*bglibs-1.106-r1 (25 Mar 2010)
+
+ 25 Mar 2010; Robin H. Johnson <robbat2@gentoo.org>
+ +bglibs-1.106-r1.ebuild:
+ Bug #300804: fix compat symlinks for multilib.
*bglibs-1.106 (13 Jan 2010)
diff --git a/dev-libs/bglibs/bglibs-1.106-r1.ebuild b/dev-libs/bglibs/bglibs-1.106-r1.ebuild
new file mode 100644
index 000000000000..88bd6704af18
--- /dev/null
+++ b/dev-libs/bglibs/bglibs-1.106-r1.ebuild
@@ -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/bglibs/bglibs-1.106-r1.ebuild,v 1.1 2010/03/25 20:29:17 robbat2 Exp $
+
+EAPI="2"
+
+inherit toolchain-funcs eutils multilib
+
+DESCRIPTION="Bruce Guenters Libraries Collection"
+HOMEPAGE="http://untroubled.org/bglibs/"
+SRC_URI="http://untroubled.org/bglibs/archive/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+DEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.106-parallel-fix.patch
+ # disable tests as we want them manually
+ sed -i \
+ -e '/^all:/s|selftests||' \
+ "${S}"/Makefile
+ sed -i \
+ -e '/selftests/d' \
+ "${S}"/TARGETS
+ #sed -i \
+ # -e 's,^libraries:,LIBS = ,g' \
+ # -e '/^LIBS =/alibs-static: $(filter %.a,$(LIBS))' \
+ # -e '/^LIBS =/alibs-shared: $(filter %.la,$(LIBS))' \
+ # -e '/^LIBS =/alibraries: libs-static libs-shared' \
+ # "${S}"/Makefile
+}
+
+src_compile() {
+ echo "${D}/usr/bin" > conf-bin
+ echo "${D}/usr/$(get_libdir)/bglibs" > conf-lib
+ echo "${D}/usr/include/bglibs" > conf-include
+ echo "${D}/usr/share/man" > conf-man
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+ emake || die
+}
+
+src_test() {
+ einfo "Running selftests"
+ emake selftests
+}
+
+src_install () {
+ einstall || die "install failed"
+
+ #make backwards compatible symlinks
+ dosym /usr/$(get_libdir)/bglibs /usr/$(get_libdir)/bglibs/lib
+ [ "$(get_libdir)" != "lib" ] && dosym /usr/$(get_libdir)/bglibs /usr/$(get_libdir)/bglibs/$(get_libdir)
+ dosym /usr/include/bglibs /usr/$(get_libdir)/bglibs/include
+
+ #install .so in LDPATH
+ mv "${D}"/usr/$(get_libdir)/bglibs/libbg.so.1.1.1 "${D}"/usr/$(get_libdir)/
+ mv "${D}"/usr/$(get_libdir)/bglibs/libbg-sysdeps.so.1.1.1 "${D}"/usr/$(get_libdir)/
+ dosym libbg.so.1.1.1 /usr/$(get_libdir)/libbg.so.1
+ dosym libbg.so.1.1.1 /usr/$(get_libdir)/libbg.so
+ dosym libbg-sysdeps.so.1.1.1 /usr/$(get_libdir)/libbg-sysdeps.so.1
+ dosym libbg-sysdeps.so.1.1.1 /usr/$(get_libdir)/libbg-sysdeps.so
+
+ dosym ../libbg.so.1.1.1 /usr/$(get_libdir)/bglibs/libbg.so.1.1.1
+ dosym ../libbg-sysdeps.so.1.1.1 /usr/$(get_libdir)/bglibs/libbg-sysdeps.so.1.1.1
+
+ rm "${D}"/usr/$(get_libdir)/bglibs/libbg.la
+ rm "${D}"/usr/$(get_libdir)/bglibs/libbg-sysdeps.la
+
+ dodoc ANNOUNCEMENT NEWS README ChangeLog TODO VERSION
+ dohtml doc/html/*
+ docinto latex
+ dodoc doc/latex/*
+}