public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-cdr/gaffitter/, app-cdr/gaffitter/files/
@ 2017-12-28 12:03 David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2017-12-28 12:03 UTC (permalink / raw
  To: gentoo-commits

commit:     fd108edb51fc837f527e1f2f725557aaf4fe4813
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 28 10:58:35 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Dec 28 12:03:01 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd108edb

app-cdr/gaffitter: Port to EAPI 6

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../files/gaffitter-0.6.0-fix-build-system.patch   | 32 ++++++++++++++++++++++
 app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild        | 30 ++++++++++++--------
 2 files changed, 50 insertions(+), 12 deletions(-)

diff --git a/app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch b/app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch
new file mode 100644
index 00000000000..df7d99b9c31
--- /dev/null
+++ b/app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch
@@ -0,0 +1,32 @@
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -6,28 +6,14 @@
+ 			  optimizers/BestFit.cc optimizers/Split.cc \
+ 			  util/CmdLineParser.cc
+ 
+-INCLUDES = -I/usr/local/include -I.
+-CXX = g++
+-CXXFLAGS = -O3 -Wno-long-long $(INCLUDES)
+-LIBPATH = 
+-LIBS = 
+-LDFLAGS = $(LIBPATH) $(LIBS)
+-
+ ###########################################################################
+ 
+ OBJS = $(CPPFILES:.cc=.o)
+ 
+-.SUFFIXES: .o .cc 
+-
+-.cc.o:
+-	@echo $<:
+-	$(CXX) $(CXXFLAGS) -c $*.cc -o $*.o
+-
+ default: gaffitter 
+ 
+ 
+-gaffitter: $(OBJS) gaffitter.cc Params.h
+-	$(CXX) $(CXXFLAGS) $@.cc $(OBJS) -o $@ $(LDFLAGS)
++gaffitter: $(OBJS) Params.h
+ ###########################################################################
+ 
+ objs: $(OBJS)	

diff --git a/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild b/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild
index 185ce7a34e7..f3f46c1d5e9 100644
--- a/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild
+++ b/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="2"
+EAPI=6
 
 inherit toolchain-funcs
 
@@ -10,29 +10,35 @@ SCRIPTS="scripts-${SV}"
 
 DESCRIPTION="Genetic Algorithm File Fitter"
 HOMEPAGE="http://gaffitter.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
-	scripts? (
-	mirror://sourceforge/${PN}/scripts/${SV}/${SCRIPTS}.tar.bz2 )"
+SRC_URI="
+	mirror://sourceforge/${PN}/${P}.tar.bz2
+	scripts? ( mirror://sourceforge/${PN}/scripts/${SV}/${SCRIPTS}.tar.bz2 )"
 
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="amd64 x86"
 IUSE="scripts"
 
+PATCHES=( "${FILESDIR}"/${PN}-0.6.0-fix-build-system.patch )
+
 src_prepare() {
-	sed -i  -e "/^INCLUDES\ =.*/d" \
-		-e "s/^CXXFLAGS\ =.*/CXXFLAGS\ =\ ${CXXFLAGS} ${LDFLAGS}/" \
-		-e "s/^CXX\ =.*/CXX\ =\ $(tc-getCXX)/" src/Makefile || die "sed failed"
+	default
+
 	if use scripts; then
 		sed -i -re "s:--data((cd)|(dvd)):--data:" "${WORKDIR}"/${PN}/${SCRIPTS}/gaff-k3b || die
 	fi
 }
 
+src_configure() {
+	tc-export CXX
+}
+
 src_install() {
-	dobin src/gaffitter || die "dobin failed"
+	dobin src/gaffitter
+	einstalldocs
+
 	if use scripts; then
-		dobin "${WORKDIR}"/${PN}/${SCRIPTS}/gaff-** || die
-		dobin "${WORKDIR}"/${PN}/${SCRIPTS}/nautilus/nautilus-* || die
+		dobin "${WORKDIR}"/${PN}/${SCRIPTS}/gaff-**
+		dobin "${WORKDIR}"/${PN}/${SCRIPTS}/nautilus/nautilus-*
 	fi
-	dodoc AUTHORS README || die "dodoc failed"
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-cdr/gaffitter/, app-cdr/gaffitter/files/
@ 2022-07-26 19:27 David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2022-07-26 19:27 UTC (permalink / raw
  To: gentoo-commits

commit:     8ed8244b6bc9f21e930f79e2cb45efb77b5155c0
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 26 19:27:08 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Jul 26 19:27:08 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ed8244b

app-cdr/gaffitter: update EAPI 6 -> 8

Closes: https://bugs.gentoo.org/729136
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch        | 2 +-
 .../{gaffitter-0.6.0-r1.ebuild => gaffitter-0.6.0-r2.ebuild}          | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch b/app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch
index df7d99b9c31e..7d6ea908607a 100644
--- a/app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch
+++ b/app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch
@@ -26,7 +26,7 @@
  
 -gaffitter: $(OBJS) gaffitter.cc Params.h
 -	$(CXX) $(CXXFLAGS) $@.cc $(OBJS) -o $@ $(LDFLAGS)
-+gaffitter: $(OBJS) Params.h
++gaffitter: $(OBJS)
  ###########################################################################
  
  objs: $(OBJS)	

diff --git a/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild b/app-cdr/gaffitter/gaffitter-0.6.0-r2.ebuild
similarity index 94%
rename from app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild
rename to app-cdr/gaffitter/gaffitter-0.6.0-r2.ebuild
index f3f46c1d5e98..964b631ce675 100644
--- a/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild
+++ b/app-cdr/gaffitter/gaffitter-0.6.0-r2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 inherit toolchain-funcs
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-26 19:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-28 12:03 [gentoo-commits] repo/gentoo:master commit in: app-cdr/gaffitter/, app-cdr/gaffitter/files/ David Seifert
  -- strict thread matches above, loose matches on Subject: below --
2022-07-26 19:27 David Seifert

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