summaryrefslogtreecommitdiff
path: root/app-cdr/gaffitter
diff options
context:
space:
mode:
Diffstat (limited to 'app-cdr/gaffitter')
-rw-r--r--app-cdr/gaffitter/Manifest5
-rw-r--r--app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch32
-rw-r--r--app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild44
-rw-r--r--app-cdr/gaffitter/metadata.xml14
4 files changed, 95 insertions, 0 deletions
diff --git a/app-cdr/gaffitter/Manifest b/app-cdr/gaffitter/Manifest
new file mode 100644
index 000000000000..df7ee06231c9
--- /dev/null
+++ b/app-cdr/gaffitter/Manifest
@@ -0,0 +1,5 @@
+AUX gaffitter-0.6.0-fix-build-system.patch 713 BLAKE2B f4faa44bd548d8a806a18e4a86a336c64f045e9bb82f1a4fbe657346e45865ab78e3c28b582a2a43e95a0561cbe2bafd626d1130d73044bcb114546b5eca466b SHA512 72724f2c638ad93d5a10991a1f0b674a2977b6b8a97956cfc08db456dad5775ca35e1fe49848a103ab0a335351a40ce792613263adcba2df7985f48b109ef3b2
+DIST gaffitter-0.6.0.tar.bz2 44433 BLAKE2B 8ae8fb68711168619e69b79c8544dcb926e984ed3e311062060c71f691588c581fb90744c3e984847bd3061e6ed18e6ae07896af8812d6896fb27291af9450e0 SHA512 f27313b0274d2b08e6e9cd7ce86d93c3a944d6d4e4ad103cba8137dd4074bcdfcbd470ef6decdd192e6e5086f27968e27e0b76ca738e9b538db14d83816010b6
+DIST scripts-0.1.0.tar.bz2 5859 BLAKE2B fa774440d9f5b1e8c3a1b4cfd2d65d1d943a904d196df2657ff12e079266b211476bd61b2514be9f629522106ef0b1ef2b21fbb8e0431bf4c6a04273fe3d8a83 SHA512 6730df258444fa4fb17a0d0438b8b1394f857638ce95aaa28dae5345d0bf7517a226a0483a6e8ab89a5012aef9b79586a0cd2b576f9a1ceafc6f29e45d797a20
+EBUILD gaffitter-0.6.0-r1.ebuild 882 BLAKE2B 251e65386c7ff36d5fe8fe3e100b7ea19f983a44a8f1ffbaeb7f4088e4538aff21124ae8d676b3b785071100ce0a0e9cbe9f88d2531512937d522f18064173b0 SHA512 7457798f7c242fd904e47391d76d44fc6de3c962574487fedb90a031029bde84785e6c9af8f8a60eac27bb586febc761c588783d659f08432a360c76b98d8bf9
+MISC metadata.xml 433 BLAKE2B 12c8e3692c80100cfa835c65e6609b2d104075fb687bc8b5a48f018570c70e476d102bedcbb713223d093b0843360488842ec3ed23ac4ed4054da704b90f51d3 SHA512 d1fcf8060649dbf5ee3fcfd24a4ac29167e0d4ae34529de8cfefb260a28ffbae476ce393a6a5c6cedf0283ce73f79acedbe5567a2cb9402017209a5048900a2e
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 000000000000..df7d99b9c31e
--- /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
new file mode 100644
index 000000000000..f3f46c1d5e98
--- /dev/null
+++ b/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+SV="0.1.0"
+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 )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="scripts"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.6.0-fix-build-system.patch )
+
+src_prepare() {
+ 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
+ einstalldocs
+
+ if use scripts; then
+ dobin "${WORKDIR}"/${PN}/${SCRIPTS}/gaff-**
+ dobin "${WORKDIR}"/${PN}/${SCRIPTS}/nautilus/nautilus-*
+ fi
+}
diff --git a/app-cdr/gaffitter/metadata.xml b/app-cdr/gaffitter/metadata.xml
new file mode 100644
index 000000000000..26dd4a0434da
--- /dev/null
+++ b/app-cdr/gaffitter/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <use>
+ <flag name="scripts">Install additional gaffitter scripts for external programs</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">gaffitter</remote-id>
+ </upstream>
+</pkgmetadata>