diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2010-04-08 22:14:56 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2010-04-08 22:14:56 +0000 |
commit | baaa8b1c89f1809da16d33fd01e213b19829c068 (patch) | |
tree | 1279703d458583eebd7f8ab0f87406a846f6de54 /games-util | |
parent | use LDFLAGS (diff) | |
download | historical-baaa8b1c89f1809da16d33fd01e213b19829c068.tar.gz historical-baaa8b1c89f1809da16d33fd01e213b19829c068.tar.bz2 historical-baaa8b1c89f1809da16d33fd01e213b19829c068.zip |
initial commit - ebuild and patch submitted by Locke 'Wizzleby' Shinseiko via bug #300328
Package-Manager: portage-2.1.7.17/cvs/Linux i686
Diffstat (limited to 'games-util')
-rw-r--r-- | games-util/nforenum/ChangeLog | 12 | ||||
-rw-r--r-- | games-util/nforenum/files/nforenum-0_pre2309-build.patch | 59 | ||||
-rw-r--r-- | games-util/nforenum/metadata.xml | 5 | ||||
-rw-r--r-- | games-util/nforenum/nforenum-0_pre2309.ebuild | 41 |
4 files changed, 117 insertions, 0 deletions
diff --git a/games-util/nforenum/ChangeLog b/games-util/nforenum/ChangeLog new file mode 100644 index 000000000000..71b19c5712cb --- /dev/null +++ b/games-util/nforenum/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for games-util/nforenum +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-util/nforenum/ChangeLog,v 1.1 2010/04/08 22:14:55 mr_bones_ Exp $ + +*nforenum-0_pre2309 (08 Apr 2010) + + 08 Apr 2010; Michael Sterrett <mr_bones_@gentoo.org> + +nforenum-0_pre2309.ebuild, +files/nforenum-0_pre2309-build.patch, + +metadata.xml: + initial commit - ebuild and patch submitted by Locke 'Wizzleby' Shinseiko + via bug #300328 + diff --git a/games-util/nforenum/files/nforenum-0_pre2309-build.patch b/games-util/nforenum/files/nforenum-0_pre2309-build.patch new file mode 100644 index 000000000000..f01a7f3e0227 --- /dev/null +++ b/games-util/nforenum/files/nforenum-0_pre2309-build.patch @@ -0,0 +1,59 @@ +diff --git a/Makefile b/Makefile +index 09e254a..cbe7573 100644 +--- a/Makefile ++++ b/Makefile +@@ -29,12 +29,13 @@ NFORENUM = $(shell [ \( $(ISCYGWIN) -eq 1 \) -o \( $(ISMINGW) -eq 1 \) ] && echo + + # use 386 instructions but optimize for pentium II/III + ifeq ($(ISCYGWIN),1) +-CFLAGS = -g -mno-cygwin -O1 -idirafter$(BOOST_INCLUDE) -Wall -Wno-uninitialized $(CFLAGAPP) ++CFLAGS += -mno-cygwin -idirafter$(BOOST_INCLUDE) -Wall -Wno-uninitialized ++CXXFLAGS += -mno-cygwin -idirafter$(BOOST_INCLUDE) -Wall -Wno-uninitialized + else +-CFLAGS = -g -O1 -idirafter$(BOOST_INCLUDE) -Wall -Wno-uninitialized $(CFLAGAPP) ++CFLAGS += -idirafter$(BOOST_INCLUDE) -Wall -Wno-uninitialized ++CXXFLAGS += -idirafter$(BOOST_INCLUDE) -Wall -Wno-uninitialized + endif + +-CXXFLAGS = $(CFLAGS) + + -include ${MAKEFILELOCAL} + +@@ -120,7 +121,7 @@ BOOST_WARN = echo Warning: NO_BOOST is no longer obeyed. + endif + + # targets +-all: $(NFORENUM) ++all: version.h $(NFORENUM) + remake: clean all + + ${MAKEFILELOCAL}: +@@ -130,7 +131,7 @@ ${MAKEFILELOCAL}: + + $(NFORENUM): $(NFORENUMSRC:%.cpp=%.o) + $(_E) [LD] $@ +- $(_C)$(CXX) -o $@ $(CFLAGS) $^ $(LDOPT) ++ $(_C)$(CXX) -o $@ $(CXXFLAGS) $^ $(LDOPT) + + + clean: +@@ -141,9 +142,7 @@ release: FORCE + $(_E)[REBUILD] $(NFORENUM) + $(_C)rm -f $(NFORENUM) + $(_C)$(MAKE) $(_S) +- $(_E) [STRIP/UPX] $(NFORENUM) + $(_C)$(STRIP) $(NFORENUM) +- $(_C)upx $(_Q) --best $(NFORENUM) + + FORCE: + @$(BOOST_WARN) +@@ -175,7 +174,8 @@ version.h: FORCE + + %.o.d: + $(_E) [CPP DEP] $@ +- $(_C)$(CC) $(CFLAGS) -DMAKEDEP -MM -MG $*.c* -MF $@ ++ $(_C)$(CC) $(CFLAGS) -DMAKEDEP -MM -MG getopt.c -MF $@ ++ $(_C)$(CXX) $(CXXFLAGS) -DMAKEDEP -MM -MG $*.cpp -MF $@ + + ifndef NO_MAKEFILE_DEP + -include $(NFORENUMSRC:.cpp=.o.d) diff --git a/games-util/nforenum/metadata.xml b/games-util/nforenum/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-util/nforenum/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-util/nforenum/nforenum-0_pre2309.ebuild b/games-util/nforenum/nforenum-0_pre2309.ebuild new file mode 100644 index 000000000000..42895f822369 --- /dev/null +++ b/games-util/nforenum/nforenum-0_pre2309.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-util/nforenum/nforenum-0_pre2309.ebuild,v 1.1 2010/04/08 22:14:55 mr_bones_ Exp $ + +EAPI=2 +inherit eutils toolchain-funcs + +MY_PV=${PV/0_pre/r} +DESCRIPTION="A tool checking NFO code for errors" +HOMEPAGE="http://binaries.openttd.org/extra/nforenum/" +SRC_URI="http://binaries.openttd.org/extra/nforenum/${MY_PV}/${PN}-${MY_PV}-source.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +S=${WORKDIR}/${PN}-${MY_PV} + +DEPEND="dev-libs/boost + dev-lang/perl" +RDEPEND="" + +src_prepare() { + cat > Makefile.local <<-__EOF__ + CC = $(tc-getCC) + CXX = $(tc-getCXX) + CFLAGS = ${CFLAGS} + CXXFLAGS = ${CXXFLAGS} + LDOPT = ${LDFLAGS} + STRIP = : + V = 1 + __EOF__ + + epatch "${FILESDIR}"/${P}-build.patch +} + +src_install() { + dobin renum || die + dodoc doc/*.en.txt || die +} |