diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-misc/opengfx | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-misc/opengfx')
-rw-r--r-- | games-misc/opengfx/Manifest | 2 | ||||
-rw-r--r-- | games-misc/opengfx/files/opengfx-0.5.1-gcc48.patch | 16 | ||||
-rw-r--r-- | games-misc/opengfx/files/opengfx-0.5.2-Makefile.patch | 45 | ||||
-rw-r--r-- | games-misc/opengfx/metadata.xml | 5 | ||||
-rw-r--r-- | games-misc/opengfx/opengfx-0.5.1.ebuild | 42 | ||||
-rw-r--r-- | games-misc/opengfx/opengfx-0.5.2.ebuild | 38 |
6 files changed, 148 insertions, 0 deletions
diff --git a/games-misc/opengfx/Manifest b/games-misc/opengfx/Manifest new file mode 100644 index 000000000000..bc6cfc57e6de --- /dev/null +++ b/games-misc/opengfx/Manifest @@ -0,0 +1,2 @@ +DIST opengfx-0.5.1-source.tar.xz 9553608 SHA256 5737760de04034504dbf552f75a45d713a59659dca4bfbdd4e215429c148d7a9 SHA512 30dee5ae2065d76205d21c911b875777878fc66c3df159ca49d8745db843bc8c00f9d022670ceb872f20bc8b64d41fbe3f12cb8ce3b3eb0e8b9c30a6e5bfde04 WHIRLPOOL f387e474ad8d1fa6b43adfce00df64a388702d5f21350ad60a76d25577aba18af798ba7cc4cb8a0ab06d49f76c48f7f59757cdb384e3630d5ff7d63b9a47da4b +DIST opengfx-0.5.2-source.tar.xz 9639176 SHA256 fba70b19e9e69e1f51a0b36675e25c5ec90157dc842de9a405c0d5700f36e647 SHA512 d42d819bec314c3e29c68e8bbb60e40c5d43ff52878f5e771edd49b27d8dabe7406a8c5050797934dc4ba78a30e1fd543482c8ea86a3e562670ce71c04e50d22 WHIRLPOOL 4fa6ebf69e2d7495658fd799329fac3127363e2d3265ecdd85f2ed2d20689a675120b669335308ef15da2b6e6b1a818d93fe8dad691134bd3894b45c523b64b4 diff --git a/games-misc/opengfx/files/opengfx-0.5.1-gcc48.patch b/games-misc/opengfx/files/opengfx-0.5.1-gcc48.patch new file mode 100644 index 000000000000..51a32c8766b7 --- /dev/null +++ b/games-misc/opengfx/files/opengfx-0.5.1-gcc48.patch @@ -0,0 +1,16 @@ +--- scripts/Makefile.nml.old ++++ scripts/Makefile.nml +@@ -14,11 +14,11 @@ + + %.src.dep: $(SRC_DIR)/%.pnml + $(_E) "[DEP] $@" +- $(_V) $(CC) -C -M -MF $@ -E -MT $(patsubst %.src.dep,%.nml,$@) - < $< ++ $(_V) $(CC) -P -C -M -MF $@ -E -MT $(patsubst %.src.dep,%.nml,$@) - < $< + + %.nml: $(SRC_DIR)/%.pnml $(TAG_FILENAME) + $(_E) "[CPP] $@" +- $(_V) $(CC) -D REPO_REVISION=$(REPO_REVISION) $(CC_FLAGS) $< > $@ ++ $(_V) $(CC) -P -D REPO_REVISION=$(REPO_REVISION) $(CC_FLAGS) $< > $@ + + %.gfx.dep: %.nml + $(_E) "[DEP] $@" diff --git a/games-misc/opengfx/files/opengfx-0.5.2-Makefile.patch b/games-misc/opengfx/files/opengfx-0.5.2-Makefile.patch new file mode 100644 index 000000000000..ee301b8190f4 --- /dev/null +++ b/games-misc/opengfx/files/opengfx-0.5.2-Makefile.patch @@ -0,0 +1,45 @@ +diff -ru opengfx-0.5.2-source.orig/Makefile opengfx-0.5.2-source/Makefile +--- opengfx-0.5.2-source.orig/Makefile 2015-04-12 12:57:17.000000000 -0400 ++++ opengfx-0.5.2-source/Makefile 2015-07-28 21:13:46.496708233 -0400 +@@ -99,8 +99,8 @@ + AWK ?= awk + GREP ?= grep + PYTHON ?= python +-UNIX2DOS ?= unix2dos +-UNIX2DOS_FLAGS ?= $(shell [ -n $(UNIX2DOS) ] && $(UNIX2DOS) -q --version 2>/dev/null && echo "-q" || echo "") ++UNIX2DOS ?= $(shell which unix2dos 2>/dev/null) ++UNIX2DOS_FLAGS ?= $(shell [ -n $(UNIX2DOS) ] && $(UNIX2DOS) -q --version 2>/dev/null >&2 && echo "-q" || echo "") + + # Graphics processing + GIMP ?= gimp +@@ -196,7 +196,7 @@ + endif + + # Days of commit since 2000-1-1 00-00 +-REPO_DAYS_SINCE_2000 ?= $(shell $(PYTHON) -c "from datetime import date; print (date(`echo "$(REPO_DATE)" | sed s/-/,/g | sed s/,0/,/g`)-date(2000,1,1)).days") ++REPO_DAYS_SINCE_2000 ?= $(shell $(PYTHON) -c "from datetime import date; print ((date(`echo "$(REPO_DATE)" | sed s/-/,/g | sed s/,0/,/g`)-date(2000,1,1)).days)") + + # Filename addition, if we're not building the default branch + REPO_BRANCH_STRING ?= $(shell if [ "$(REPO_BRANCH)" = "$(DEFAULT_BRANCH_NAME)" ]; then echo ""; else echo "-$(REPO_BRANCH)"; fi) +@@ -377,7 +377,11 @@ + | sed -e "s/$(REPLACE_REVISION)/$(NEWGRF_VERSION)/" \ + | sed -e "s/$(REPLACE_FILENAME)/$(OUTPUT_FILENAME)/" \ + > $@ +- $(_V) [ -z "$(UNIX2DOS)" ] || $(UNIX2DOS) $(UNIX2DOS_FLAGS) $@ ++ifeq ($(UNIX2DOS),) ++ $(_E) Warning: unix2dos not available. $@ keeps current eol style. ++else ++ $(_V) $(UNIX2DOS) $(UNIX2DOS_FLAGS) $@ ++endif + + clean:: + $(_E) "[CLEAN DOC]" +@@ -714,7 +718,7 @@ + $(_E) + endif + $(_E) "Release:" +- $(_E) "bananas: Upload bundle to BaNaNaS ++ $(_E) "bananas: Upload bundle to BaNaNaS" + $(_E) + $(_E) "Valid command line variables are:" + $(_E) "Helper programmes:" diff --git a/games-misc/opengfx/metadata.xml b/games-misc/opengfx/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-misc/opengfx/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-misc/opengfx/opengfx-0.5.1.ebuild b/games-misc/opengfx/opengfx-0.5.1.ebuild new file mode 100644 index 000000000000..f73d4b6b05e2 --- /dev/null +++ b/games-misc/opengfx/opengfx-0.5.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="OpenGFX data files for OpenTTD" +HOMEPAGE="http://bundles.openttdcoop.org/opengfx/" +SRC_URI="http://bundles.openttdcoop.org/opengfx/releases/${PV}/${P}-source.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc x86" +IUSE="" +RESTRICT="test" # nml version affects the checksums that the test uses (bug #451444) + +DEPEND=">=games-util/nml-0.3.0 + games-util/grfcodec" +RDEPEND="" + +S=${WORKDIR}/${P}-source + +src_prepare() { + # ensure that we will not use gimp to regenerate the pngs + # causes sandbox violations and not worth the effort anyway + sed -i -e '/^GFX_SCRIPT_LIST_FILES/s/^/#/' Makefile.config || die + # work with later versions of unix2dos from app-text/dos2unix + sed -i -e '/^UNIX2DOS_FLAGS/s/null/null >&2/' Makefile || die +} + +src_compile() { + emake help # print out the env to make bug reports better + _V= emake bundle_tar +} + +src_install() { + insinto "${GAMES_DATADIR}/openttd/data/" + doins *.grf opengfx.obg + dodoc docs/{changelog.txt,readme.txt} + prepgamesdirs +} diff --git a/games-misc/opengfx/opengfx-0.5.2.ebuild b/games-misc/opengfx/opengfx-0.5.2.ebuild new file mode 100644 index 000000000000..ca291533e9b6 --- /dev/null +++ b/games-misc/opengfx/opengfx-0.5.2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="OpenGFX data files for OpenTTD" +HOMEPAGE="http://bundles.openttdcoop.org/opengfx/" +SRC_URI="http://bundles.openttdcoop.org/opengfx/releases/${PV}/${P}-source.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="" +RESTRICT="test" # nml version affects the checksums that the test uses (bug #451444) + +DEPEND=">=games-util/nml-0.3.0 + games-util/grfcodec" +RDEPEND="" + +S=${WORKDIR}/${P}-source + +src_prepare() { + epatch "${FILESDIR}/${P}-Makefile.patch" +} + +src_compile() { + GIMP= emake help # print out the env to make bug reports better + GIMP= _V= emake bundle_tar +} + +src_install() { + insinto "${GAMES_DATADIR}/openttd/data/" + doins *.grf opengfx.obg + dodoc docs/{changelog.txt,readme.txt} + prepgamesdirs +} |