public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/gozer/files/, media-gfx/gozer/
@ 2018-04-18 19:57 David Seifert
  0 siblings, 0 replies; only message in thread
From: David Seifert @ 2018-04-18 19:57 UTC (permalink / raw
  To: gentoo-commits

commit:     1184156dec55cc4ca0133c7b9464f63a91e2709c
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 18 19:54:16 2018 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Apr 18 19:57:18 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1184156d

media-gfx/gozer: [QA] Cleanup ebuild

Package-Manager: Portage-2.3.30, Repoman-2.3.9

 .../gozer/files/gozer-0.7-fix-build-system.patch   | 51 ++++++++++++++++++++++
 media-gfx/gozer/gozer-0.7-r3.ebuild                | 21 ++++-----
 2 files changed, 59 insertions(+), 13 deletions(-)

diff --git a/media-gfx/gozer/files/gozer-0.7-fix-build-system.patch b/media-gfx/gozer/files/gozer-0.7-fix-build-system.patch
new file mode 100644
index 00000000000..6102fe9c64c
--- /dev/null
+++ b/media-gfx/gozer/files/gozer-0.7-fix-build-system.patch
@@ -0,0 +1,51 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -5,14 +5,9 @@
+ # A list of all the files in the current directory which can be regenerated
+ MAINTAINERCLEANFILES = Makefile.in gozer.spec
+ 
+-LDFLAGS           = -L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib
+-INCLUDES          = -I/usr/X11R6/include \
+-$(X_CFLAGS) -I$(prefix)/include -I$(includedir) -I.
+-
+ man_MANS = gozer.1
+ 
+-docs_DATA = README AUTHORS ChangeLog TODO
+-docsdir = $(prefix)/doc/@PACKAGE@
++doc_DATA = README AUTHORS ChangeLog TODO
+ 
+ EXTRA_DIST = \
+ gozer.spec gozer.1 $(docs_DATA)
+--- a/src/fonts/Makefile.am
++++ b/src/fonts/Makefile.am
+@@ -8,6 +8,6 @@
+ fonts_DATA = \
+ helmetr.ttf
+ 
+-fontsdir=$(prefix)/share/@PACKAGE@/fonts
++fontsdir=$(prefix)/share/$(PACKAGE)/fonts
+ 
+ EXTRA_DIST = $(fonts_DATA)
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,15 +1,13 @@
+ # A list of all the files in the current directory which can be regenerated
+-MAINTAINERCLEANFILES = Makefile.in				
++MAINTAINERCLEANFILES = Makefile.in
+ 
+ SUBDIRS = fonts
+ 
+-LDFLAGS           = -L/usr/X11R6/lib
+-INCLUDES          = -g -O3 -Wall -I/usr/X11R6/include \
+-$(X_CFLAGS) -I$(prefix)/include -I$(includedir) -I. \
+--DPREFIX=\""$(prefix)"\" @GIBLIB_CFLAGS@
+-LIBOBJS = @LIBOBJS@
++AM_CPPFLAGS = -Wall -I/usr/X11R6/include \
++	$(X_CFLAGS) -I$(prefix)/include -I$(includedir) -I. \
++	-DPREFIX=\""$(prefix)"\" $(GIBLIB_CFLAGS)
+ 
+ bin_PROGRAMS      = gozer
+ gozer_SOURCES       = main.c getopt.c getopt1.c getopt.h gozer.h \
+ options.c options.h debug.h utils.c utils.h imlib.c structs.h
+-gozer_LDADD         = @GIBLIB_LIBS@
++gozer_LDADD         = $(GIBLIB_LIBS) -L/usr/X11R6/lib

diff --git a/media-gfx/gozer/gozer-0.7-r3.ebuild b/media-gfx/gozer/gozer-0.7-r3.ebuild
index 05e8079d3ba..64e0751606c 100644
--- a/media-gfx/gozer/gozer-0.7-r3.ebuild
+++ b/media-gfx/gozer/gozer-0.7-r3.ebuild
@@ -14,22 +14,17 @@ SLOT="0"
 KEYWORDS="amd64 ~ppc x86"
 IUSE=""
 
-DEPEND="x11-libs/libXext
-	>=media-libs/giblib-1.2.1"
-RDEPEND=">=media-libs/giblib-1.2.1
+RDEPEND="
+	media-libs/giblib
 	media-libs/imlib2"
+DEPEND="
+	${RDEPEND}
+	x11-libs/libXext"
+
+PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch )
 
 src_prepare() {
 	default
-	sed -i src/Makefile.am \
-		-e 's|-g -O3|$(CFLAGS)|g' \
-		-e '/LDFLAGS/s|=|+=|g' \
-		|| die "sed src/Makefile.am"
+	mv configure.{in,ac} || die
 	eautoreconf
 }
-
-src_install() {
-	emake install DESTDIR="${D}"
-	rm -rf "${D}"/usr/doc || die
-	dodoc TODO README AUTHORS ChangeLog
-}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-18 19:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-18 19:57 [gentoo-commits] repo/gentoo:master commit in: media-gfx/gozer/files/, media-gfx/gozer/ David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox