Fix as-needed issue wrt bug #173271, thanks tove
authorRobert Buchholz <rbu@gentoo.org>
Sat, 7 Apr 2007 19:48:27 +0000 (19:48 +0000)
committerRobert Buchholz <rbu@gentoo.org>
Sat, 7 Apr 2007 19:48:27 +0000 (19:48 +0000)
Package-Manager: portage-2.1.2.2

app-misc/glcdprocdriver/ChangeLog
app-misc/glcdprocdriver/files/digest-glcdprocdriver-0.0.3-r1
app-misc/glcdprocdriver/files/digest-glcdprocdriver-0.0.3-r2 [new file with mode: 0644]
app-misc/glcdprocdriver/files/glcdprocdriver-0.0.3-makefile.patch [new file with mode: 0644]
app-misc/glcdprocdriver/glcdprocdriver-0.0.3-r2.ebuild [new file with mode: 0644]

index 6c979f0aa6be157511a799e956d42d8fe6afe48a..3f922d3a74c7d26f152e1a3dabc0869b1e94f197 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for app-misc/glcdprocdriver
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/glcdprocdriver/ChangeLog,v 1.4 2007/04/07 14:16:22 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/glcdprocdriver/ChangeLog,v 1.5 2007/04/07 19:48:27 rbu Exp $
+
+*glcdprocdriver-0.0.3-r2 (07 Apr 2007)
+
+  07 Apr 2007; Robert Buchholz <rbu@gentoo.org>
+  +files/glcdprocdriver-0.0.3-makefile.patch,
+  +glcdprocdriver-0.0.3-r2.ebuild:
+  Fix as-needed issue wrt bug #173271, thanks tove
 
   07 Apr 2007; Markus Ullmann <jokey@gentoo.org>
   glcdprocdriver-0.0.3-r1.ebuild:
index e35a41e1a4522994de17ffe0a843f02c64c0712e..b8512fdb735c03c493381fcde4867f46372835cb 100644 (file)
@@ -1,2 +1,3 @@
+MD5 67d1948efe2f9f15098eab1e261fc797 glcdprocdriver-0.0.3.tar.bz2 17565
 RMD160 ef15bdda24d52f2c097968f4ef3a3bea78a87cc5 glcdprocdriver-0.0.3.tar.bz2 17565
 SHA256 89c99051e5c3a0724c5ea212079e0571066888c74ebd3fda6befd65f8bec03e6 glcdprocdriver-0.0.3.tar.bz2 17565
diff --git a/app-misc/glcdprocdriver/files/digest-glcdprocdriver-0.0.3-r2 b/app-misc/glcdprocdriver/files/digest-glcdprocdriver-0.0.3-r2
new file mode 100644 (file)
index 0000000..b8512fd
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 67d1948efe2f9f15098eab1e261fc797 glcdprocdriver-0.0.3.tar.bz2 17565
+RMD160 ef15bdda24d52f2c097968f4ef3a3bea78a87cc5 glcdprocdriver-0.0.3.tar.bz2 17565
+SHA256 89c99051e5c3a0724c5ea212079e0571066888c74ebd3fda6befd65f8bec03e6 glcdprocdriver-0.0.3.tar.bz2 17565
diff --git a/app-misc/glcdprocdriver/files/glcdprocdriver-0.0.3-makefile.patch b/app-misc/glcdprocdriver/files/glcdprocdriver-0.0.3-makefile.patch
new file mode 100644 (file)
index 0000000..c47eec9
--- /dev/null
@@ -0,0 +1,21 @@
+--- ./Makefile 2006-10-05 08:37:03.000000000 +0000
++++ ./Makefile 2007-04-07 19:06:00.000000000 +0000
+@@ -11,6 +11,8 @@
+ PACKAGE = $(ARCHIVE)
+ TMPDIR = /tmp
++LIBS=-lglcddrivers -lglcdgraphics
++
+ LIBNAME = libglcdprocdriver.so
+ SONAME  = $(LIBNAME).1
+@@ -24,6 +26,9 @@
+ all: $(LIBNAME)
++$(OBJS): %.o: %.c
++      $(CXX) -c -fPIC $(CXXFLAGS) $< -o $@
++
+ $(LIBNAME): $(OBJS)
+       $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -Wl,-soname="$(SONAME)" -o $@
diff --git a/app-misc/glcdprocdriver/glcdprocdriver-0.0.3-r2.ebuild b/app-misc/glcdprocdriver/glcdprocdriver-0.0.3-r2.ebuild
new file mode 100644 (file)
index 0000000..74edade
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/glcdprocdriver/glcdprocdriver-0.0.3-r2.ebuild,v 1.1 2007/04/07 19:48:27 rbu Exp $
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="Glue library for the glcdlib LCDproc driver based on GraphLCD"
+HOMEPAGE="http://www.muresan.de/graphlcd/lcdproc"
+SRC_URI="http://www.muresan.de/graphlcd/lcdproc/${P}.tar.bz2"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+S=${WORKDIR}/${P}
+
+DEPEND=">=app-misc/graphlcd-base-0.1.3"
+RDEPEND=${DEPEND}
+
+IUSE=""
+
+src_unpack()
+{
+       unpack ${A}
+       cd "${S}"
+
+       # use CFLAGS defined in /etc/make.conf instead of the ones in Make.config
+       sed -i ${S}/Make.config -e "s:FLAGS *=:FLAGS ?=:"
+       sed -i ${S}/Make.config -e "6s:gcc:$(tc-getCC):"
+       sed -i ${S}/Make.config -e "9s:g++:$(tc-getCXX):"
+       epatch "${FILESDIR}/${P}-makefile.patch"
+}
+
+src_install()
+{
+       emake DESTDIR=${D}/usr LIBDIR=${D}/usr/$(get_libdir) install || die "make install failed"
+       dodoc AUTHORS README INSTALL TODO ChangeLog
+}