diff options
Diffstat (limited to 'sci-geosciences/tilecache')
-rw-r--r-- | sci-geosciences/tilecache/Manifest | 6 | ||||
-rw-r--r-- | sci-geosciences/tilecache/files/tilecache-2.11-pil.patch | 21 | ||||
-rw-r--r-- | sci-geosciences/tilecache/metadata.xml | 8 | ||||
-rw-r--r-- | sci-geosciences/tilecache/tilecache-2.11-r1.ebuild | 32 |
4 files changed, 67 insertions, 0 deletions
diff --git a/sci-geosciences/tilecache/Manifest b/sci-geosciences/tilecache/Manifest new file mode 100644 index 000000000000..3c3ccdb3d19a --- /dev/null +++ b/sci-geosciences/tilecache/Manifest @@ -0,0 +1,6 @@ +AUX tilecache-2.11-pil.patch 935 SHA256 8c871b69f7d166ee09a50f31afcd4e3f509ff6572767bf94347f2137b9ca84e0 SHA512 1fcc6b35ce464a76d99b858f2e6d3baf9a4e4e22ee81db4dc178eb63dfcf30f0501cd420624406a85987eb78f387156a2756f2d151c52cf301e2592500e5e924 WHIRLPOOL b8905f26ffe33ae4016e7d403aedb90d82d8ceae3918c9dcf6d43db277ef713d614513b4e7ff87d22fb0f145d98c9ac12bf797e97f0150d3798c6ade51e33239 +DIST tilecache-2.11.tar.gz 68705 SHA256 b46dc2731a19b40e3207cf3c9b43ea59b899a622a586aaa3c397c3b5aa00f887 SHA512 234fdba3465b9f940b4bf45a4427c61a803f4458266c59ac08d52bdaace4a186d7bf37cce7af6f273ba0ade9e8d6118fa58ce6dd37645a0667230dc507ee991a WHIRLPOOL aa3da22b95b35da7b6612ed6078ccec34828c0488ddff18b33642cdcbb7dc45a502f6b5717f25264b6d9ffc0b5d2bdd1fb4091bc49277d5c135d216f24b3567c +EBUILD tilecache-2.11-r1.ebuild 597 SHA256 71b6fc7cf640fe3eb818d44d8a5cf8679411a8c245c5ec1fe8819c1288f7c9f4 SHA512 492159c37da6056b2a94b0e58d33c5582b6bd9da0e92c4898fba287d41a943e428178658c424ee1ee209ae7dac415d56976ecc999c7917ad5a94a0f96d63f2de WHIRLPOOL 0da37d8c13b21fb400d2eb3aca4e3c0a713fefa74762678e6ffc2a6cc82b8a9d7fff6c4c013e8518c86de1b012bf1fb79adb1d00b1265bb3761559de8be217c1 +MISC ChangeLog 2666 SHA256 6e2fb272708d6f7554e1fa40c35d7a7d76138c2c4bc9ba579b93b97a5112281e SHA512 001b97479d231a15406a891db3517072529cbf632015ebb1371f7ac3e87fdc52c3dddc98d7295c03d7897aebd8a85cbe9c1e410680865d836ce0788a82b81d91 WHIRLPOOL 0f203b44526c69e1295d0d07c3213acf1e0ce7ad68f96d183c392a6197049f4519021d904092d89ab7d4a5f6de7f5a8ec7b22bdcbcde0b51402c15d87fa13c60 +MISC ChangeLog-2015 1445 SHA256 b0093f7b8ebc5fbebc6ef3984127b1a03d599508ecb9dd90e61eba8a51cd02fc SHA512 429e04dd51ece72a78e02ea3e20451d5b5bd5fffd974cccbb7b262233dda6628ae794c7d3777d9bc02d46ab74a0e347b7aa493ebc7cdc5ef4e65a0a7a5a6e90e WHIRLPOOL eda12b2bc8fbf8caa86e0c2235951fb494de0ab759fe048130e4722c88966fca8249e6046d94334f81d6cdc4cad3fd90c91a06b990e70ded56ded3f52962d26b +MISC metadata.xml 265 SHA256 4f6ab72340330e0b1a0e2ad7439bac9ccd74da94ce42ba76b58cbb81dc52125b SHA512 c08402155a91423d29d281e4adcb3bcb057a61def37efc13bbaf8ea03c147e258352fcc9d6ef12c935ed65078743d79a5191d72d7838429a80cadee42b32cb8f WHIRLPOOL 5204dd687ea2f450344a4a626383cbc05d27b2f264156054a4f2a5e2b7e80986224788b2411cee6011c0c0e604835f69be412eeaaa17076cc3762691855656f4 diff --git a/sci-geosciences/tilecache/files/tilecache-2.11-pil.patch b/sci-geosciences/tilecache/files/tilecache-2.11-pil.patch new file mode 100644 index 000000000000..b596ae449ff7 --- /dev/null +++ b/sci-geosciences/tilecache/files/tilecache-2.11-pil.patch @@ -0,0 +1,21 @@ +diff -Nuar tilecache-2.11.orig/TileCache/Layer.py tilecache-2.11/TileCache/Layer.py +--- tilecache-2.11.orig/TileCache/Layer.py 2010-10-15 04:00:18.000000000 -0700 ++++ tilecache-2.11/TileCache/Layer.py 2013-11-09 11:05:17.620475332 -0800 +@@ -391,7 +391,7 @@ + return MetaTile(self, x, y, tile.z) + + def renderMetaTile (self, metatile, tile): +- import StringIO, Image ++ import StringIO, PIL.Image as Image + + data = self.renderTile(metatile) + image = Image.open( StringIO.StringIO(data) ) +@@ -444,7 +444,7 @@ + return self.renderTile(tile) + + def watermark (self, img): +- import StringIO, Image, ImageEnhance ++ import StringIO, PIL.Image as Image, PIL.ImageEnhance as ImageEnhance + tileImage = Image.open( StringIO.StringIO(img) ) + wmark = Image.open(self.watermarkimage) + assert self.watermarkopacity >= 0 and self.watermarkopacity <= 1 diff --git a/sci-geosciences/tilecache/metadata.xml b/sci-geosciences/tilecache/metadata.xml new file mode 100644 index 000000000000..1c984f64751f --- /dev/null +++ b/sci-geosciences/tilecache/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>sci-geosciences@gentoo.org</email> + <name>Gentoo Geosciences Project</name> +</maintainer> +</pkgmetadata> diff --git a/sci-geosciences/tilecache/tilecache-2.11-r1.ebuild b/sci-geosciences/tilecache/tilecache-2.11-r1.ebuild new file mode 100644 index 000000000000..f52323268ed3 --- /dev/null +++ b/sci-geosciences/tilecache/tilecache-2.11-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Web map tile caching system" +HOMEPAGE="http://tilecache.org/" +SRC_URI="http://${PN}.org/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-python/pillow + dev-python/paste" +DEPEND="${RDEPEND} + dev-python/setuptools +" + +PATCHES=( "${FILESDIR}/tilecache-2.11-pil.patch" ) + +src_install() { + distutils-r1_src_install "--debian" +} + +python_test() { + python setup.py test || die "Failed tests" +} |