summaryrefslogtreecommitdiff
path: root/games-util/nml
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-util/nml
reinit the tree, so we can have metadata
Diffstat (limited to 'games-util/nml')
-rw-r--r--games-util/nml/Manifest10
-rw-r--r--games-util/nml/files/nml-0.4.2-pillow3.patch31
-rw-r--r--games-util/nml/files/nml-0.4.4-pillow3.patch11
-rw-r--r--games-util/nml/metadata.xml8
-rw-r--r--games-util/nml/nml-0.4.2-r1.ebuild27
-rw-r--r--games-util/nml/nml-0.4.4-r1.ebuild27
-rw-r--r--games-util/nml/nml-0.4.4.ebuild27
7 files changed, 141 insertions, 0 deletions
diff --git a/games-util/nml/Manifest b/games-util/nml/Manifest
new file mode 100644
index 000000000000..39d509c30b99
--- /dev/null
+++ b/games-util/nml/Manifest
@@ -0,0 +1,10 @@
+AUX nml-0.4.2-pillow3.patch 1409 SHA256 6143ae5eed5e9b371502de86a6bd760439252d57c4736424c26ec821ecbbcf18 SHA512 1d4ddbc2ac779311d04271fbc2d1b95d2ad31298d4cc9c4312c301712491d5f4173e9e1177edcf3f685da1ca0645ed981c8b7fb58de052005e0ae0a2773d5320 WHIRLPOOL ce453789d76681aa22df8d411d927fc7e0e9797d04df8f530390febfbd3e8d233a83881b8dfa65cc7d4bff4d623cdf00174d9ce02659f8102bd11e0a226ab926
+AUX nml-0.4.4-pillow3.patch 288 SHA256 dacbe8b91a700d9d6bd236ffb744f26d8ab8916fb00c401b7f8602dcbb3cb493 SHA512 cdb6113102fadbf3b3d9cab930b15cfd88d609c9bb09048a3fb247051169933a0796c10d0c29b9d6bf9320ddcf73a4681255d8e1465a7a98268029d3433ba524 WHIRLPOOL f241de5bea1336b74e6908ee5a259f2b3897840085796046818ce263754b94626380e0b842ef827cfe338a982392e453bbe5972e608e8b485222e780c76b0440
+DIST nml-0.4.2.tar.gz 377834 SHA256 eb4c2107682f14c58c5fbffc5f26c206fd3c8fc6972a3e28478e3e7f2bb773d7 SHA512 0d9c9f1de91cd91962aeacc0e5c59b351a2e4729f97d7fc2eb49f6d6487c1e1a7a98fb8f793689520c6e828fd6cdf39e952f13d0dc2f198234e3e6ad47fe6d8b WHIRLPOOL d4d994125c04c53528ae4cf9e3ca4643d2ef1e71636453404196b200a275649b2846683406bbae6f76e98573ea92962c23e295adeba3f6086026c0b8fd676c75
+DIST nml-0.4.4.tar.gz 377998 SHA256 af66146b5cf7e0a06a80ae2882d6899faf4ed27b41ce4c8aca934b8f8ba66972 SHA512 fd7b8d7abfc8b5ea694eedf00bbc4069a82de942178a58ec05e9d3efe7c8663103ffb6b98f7614ce165eb7cba42cb4c7589f77fb67dd95eb6293f62b3179c7b0 WHIRLPOOL cb1175430e97ba56b5dff85447c7be8dde9e25e92f10d98f0a79f34c5fd55e83209d6ff4e82d646f644f5ad5ef1ecbeef7196d3f89a6e1dc001d04b284cb38f6
+EBUILD nml-0.4.2-r1.ebuild 689 SHA256 16e536eab0a38fef1acc82d179237e13d65a61520c7233adfc35b40320ce2814 SHA512 aafc68d1dff4f30862844eb260012918c85875207202d3cbeecf65d82bcfe28b0ebcccdb93f634692dfcea4fc604b26921c952058c9804c58d635d2d82d8e849 WHIRLPOOL 13954b43dde043014df688cea53083040065d3c9c82644e84d6564596b71ad9e758f42f3cf3eba68b356df99be11b0308f7de91729d1bc869a883a8a6407dc10
+EBUILD nml-0.4.4-r1.ebuild 694 SHA256 cd0567ba2c3d4f89f0ce3fdabb24741c953dbb05a92892ed2cf185df50f05064 SHA512 73d3e762f59e84e4338a41b1fc118b3a019e1f7a3c30854519ac1cb0f5f282ad9c2b59285b0232dd98ea50a783f65564db313c1b81f06763472974734f9c1bf2 WHIRLPOOL 650ef9bcfdcf7b91845b349f4759e26099cb6260619cf7de5d9ad3b5bf4d02ce50cbc5b432d49b94a6bdd5eaabf16845c627fcd0d963067a7f6d4bf819987ce8
+EBUILD nml-0.4.4.ebuild 690 SHA256 180201a2e445549feb609b45361e7acb39237532644222b72681f7ab4451ef0a SHA512 7ee98a70a754b71f7c43487e72c173c375267a9e765673c4a938448afc65c00d36bc9af2eac9ff49cbf927ed496689aa12f3a34eb0495e54943f0fa4ba443137 WHIRLPOOL 28055384d45a2980efc9651465d119531ae577488b3dc1cf0489c2ed38121dc50c4fad049c95ed9fec305aebd1117c2d17021a3d329b80691b1a495d72579f2b
+MISC ChangeLog 4945 SHA256 d8915d7989ea33a1170a73eb03c05a0c3d450d40e3c63de4f542430e00144323 SHA512 2a2828c0958bc65d0a6ebc6b81fcca3be1e71ca65986994e20a91e950e3a4ed72655adf892c1d06b7b915f9e92b19d330ad2d74567548cc6e3f97eb80b92127e WHIRLPOOL 6e7ca62cda3d937fd1628988f2ad3147132581a77fc20ceda394afe60a4f8b93bb8b7d9f4c05fe2b7eefcb30e9ac5aca2b0364aad98ce06c4de487c054d4d12d
+MISC ChangeLog-2015 4859 SHA256 f4fbc8c4954f14e843f474d68956de3db3e5f79b3d688ab71fd15e01787465e0 SHA512 b3b59f3175c93435a3c0c3de37bdf4103c59078526b95a006e872830a75d685558c72857bffa3aa15ecad7da126887cf5d659e4d98ff358c8c95af3c9b0521a7 WHIRLPOOL b160ee6fc55b579d229cb350910b8ec025503c6377a4be16d2e502e9b6e2ceba0e8aea1d87a2fb60e40c943fb408c31ea080d9d896c251845b3dbff2753db0f0
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-util/nml/files/nml-0.4.2-pillow3.patch b/games-util/nml/files/nml-0.4.2-pillow3.patch
new file mode 100644
index 000000000000..914cef24df51
--- /dev/null
+++ b/games-util/nml/files/nml-0.4.2-pillow3.patch
@@ -0,0 +1,31 @@
+--- nml-0.4.2/nml/lz77.py
++++ nml-0.4.2/nml/lz77.py
+@@ -25,7 +25,7 @@
+ @return: Compressed data.
+ @rtype: C{bytearray}
+ """
+- stream = data.tostring()
++ stream = data.tobytes()
+ position = 0
+ output = array.array('B')
+ literal_bytes = array.array('B')
+--- nml-0.4.2/nml/spriteencoder.py
++++ nml-0.4.2/nml/spriteencoder.py
+@@ -276,7 +276,7 @@
+ pos = generic.build_position(sprite_info.poslist)
+ raise generic.ScriptError("Read beyond bounds of image file '{}'".format(filename_32bpp.value), pos)
+ sprite = im.crop((x, y, x + size_x, y + size_y))
+- rgb_sprite_data = sprite.tostring()
++ rgb_sprite_data = sprite.tobytes()
+
+ if (info_byte & INFO_ALPHA) != 0:
+ # Check for half-transparent pixels (not valid for ground sprites)
+@@ -296,7 +296,7 @@
+ raise generic.ScriptError("Read beyond bounds of image file '{}'".format(filename_8bpp.value), pos)
+ mask_sprite = mask_im.crop((mask_x, mask_y, mask_x + size_x, mask_y + size_y))
+
+- mask_sprite_data = self.palconvert(mask_sprite.tostring(), im_mask_pal)
++ mask_sprite_data = self.palconvert(mask_sprite.tobytes(), im_mask_pal)
+
+ # Check for white pixels; those that cause "artefacts" when shading
+ pixel_stats['white'] = sum(p == 255 for p in mask_sprite_data)
diff --git a/games-util/nml/files/nml-0.4.4-pillow3.patch b/games-util/nml/files/nml-0.4.4-pillow3.patch
new file mode 100644
index 000000000000..e55d989fbc1b
--- /dev/null
+++ b/games-util/nml/files/nml-0.4.4-pillow3.patch
@@ -0,0 +1,11 @@
+--- nml-0.4.4.orig/nml/lz77.py
++++ nml-0.4.4/nml/lz77.py
+@@ -25,7 +25,7 @@
+ @return: Compressed data.
+ @rtype: C{bytearray}
+ """
+- stream = data.tostring()
++ stream = data.tobytes()
+ position = 0
+ output = array.array('B')
+ literal_bytes = array.array('B')
diff --git a/games-util/nml/metadata.xml b/games-util/nml/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-util/nml/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-util/nml/nml-0.4.2-r1.ebuild b/games-util/nml/nml-0.4.2-r1.ebuild
new file mode 100644
index 000000000000..f19bb0301b3a
--- /dev/null
+++ b/games-util/nml/nml-0.4.2-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python3_4 )
+inherit distutils-r1
+
+DESCRIPTION="Compiler of NML files into grf/nfo files"
+HOMEPAGE="http://dev.openttdcoop.org/projects/nml"
+SRC_URI="http://bundles.openttdcoop.org/nml/releases/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+
+RDEPEND="dev-python/pillow[zlib,${PYTHON_USEDEP}]
+ dev-python/ply[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+DOCS=( docs/{changelog,readme}.txt )
+PATCHES=( "${FILESDIR}"/${P}-pillow3.patch )
+
+src_install() {
+ distutils-r1_src_install
+ doman docs/nmlc.1
+}
diff --git a/games-util/nml/nml-0.4.4-r1.ebuild b/games-util/nml/nml-0.4.4-r1.ebuild
new file mode 100644
index 000000000000..f4f87cd85805
--- /dev/null
+++ b/games-util/nml/nml-0.4.4-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_{4,5} )
+inherit distutils-r1
+
+DESCRIPTION="Compiler of NML files into grf/nfo files"
+HOMEPAGE="http://dev.openttdcoop.org/projects/nml"
+SRC_URI="http://bundles.openttdcoop.org/nml/releases/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+
+RDEPEND="dev-python/pillow[zlib,${PYTHON_USEDEP}]
+ dev-python/ply[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+DOCS=( docs/{changelog,readme}.txt )
+PATCHES=( "${FILESDIR}"/${P}-pillow3.patch )
+
+src_install() {
+ distutils-r1_src_install
+ doman docs/nmlc.1
+}
diff --git a/games-util/nml/nml-0.4.4.ebuild b/games-util/nml/nml-0.4.4.ebuild
new file mode 100644
index 000000000000..d9b198914109
--- /dev/null
+++ b/games-util/nml/nml-0.4.4.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python3_4 )
+inherit distutils-r1
+
+DESCRIPTION="Compiler of NML files into grf/nfo files"
+HOMEPAGE="http://dev.openttdcoop.org/projects/nml"
+SRC_URI="http://bundles.openttdcoop.org/nml/releases/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+
+RDEPEND="dev-python/pillow[zlib,${PYTHON_USEDEP}]
+ dev-python/ply[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+DOCS=( docs/{changelog,readme}.txt )
+PATCHES=( "${FILESDIR}"/${P}-pillow3.patch )
+
+src_install() {
+ distutils-r1_src_install
+ doman docs/nmlc.1
+}