diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2006-03-16 19:24:20 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2006-03-16 19:24:20 +0000 |
commit | a8b440bc56007e7d68a66677dc9c28837cad8310 (patch) | |
tree | 61e9ac2b0eba780913ae29cfcffc13c2fb81fb44 /x11-misc/openclipart | |
parent | new version. (diff) | |
download | gentoo-2-a8b440bc56007e7d68a66677dc9c28837cad8310.tar.gz gentoo-2-a8b440bc56007e7d68a66677dc9c28837cad8310.tar.bz2 gentoo-2-a8b440bc56007e7d68a66677dc9c28837cad8310.zip |
Fix bug #116289 (Download only svg images from openclipart).
(Portage version: 2.1_pre6-r3)
Diffstat (limited to 'x11-misc/openclipart')
-rw-r--r-- | x11-misc/openclipart/ChangeLog | 12 | ||||
-rw-r--r-- | x11-misc/openclipart/Manifest | 14 | ||||
-rw-r--r-- | x11-misc/openclipart/files/digest-openclipart-0.18-r1 | 6 | ||||
-rw-r--r-- | x11-misc/openclipart/openclipart-0.18-r1.ebuild | 109 |
4 files changed, 139 insertions, 2 deletions
diff --git a/x11-misc/openclipart/ChangeLog b/x11-misc/openclipart/ChangeLog index 55295577ddde..79d3b5a6ff67 100644 --- a/x11-misc/openclipart/ChangeLog +++ b/x11-misc/openclipart/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for x11-misc/openclipart -# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/openclipart/ChangeLog,v 1.8 2005/12/28 18:33:48 nelchael Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/openclipart/ChangeLog,v 1.9 2006/03/16 19:24:19 nelchael Exp $ + +*openclipart-0.18-r1 (16 Mar 2006) + + 16 Mar 2006; Krzysiek Pawlik <nelchael@gentoo.org> + +openclipart-0.18-r1.ebuild: + Added new version with heavily modified install procedure. Allows smaller + downloads when only svg is in USE and solves the issue with directory names + that contain spaces. See bug #116289. 28 Dec 2005; Krzysiek Pawlik <nelchael@gentoo.org> -openclipart-0.17-r1.ebuild, openclipart-0.18.ebuild: diff --git a/x11-misc/openclipart/Manifest b/x11-misc/openclipart/Manifest index 5753e67cb3e7..f0c581f9138e 100644 --- a/x11-misc/openclipart/Manifest +++ b/x11-misc/openclipart/Manifest @@ -1,4 +1,18 @@ MD5 139844bd6be6c89b14cba1467ae7ba52 ChangeLog 1382 +RMD160 a7c6362e3bd55c58da0fb7c951d233533699df5f ChangeLog 1382 +SHA256 bf8ebd2a88c1262336eceaff1fbe4e5300993678dcffd22ab706e244854b8542 ChangeLog 1382 MD5 e2cc88a52713e033454eadb4a5f1e657 files/digest-openclipart-0.18 77 +RMD160 33e6a707e074f8876913054074f6485a6597c783 files/digest-openclipart-0.18 77 +SHA256 748f284fdcc871f3280f776ad4b5637557e049b061a53dfe69fdd26bf5377257 files/digest-openclipart-0.18 77 +MD5 c304f20ddd34bb9517fe4e7b627b044d files/digest-openclipart-0.18-r1 560 +RMD160 c010d708f02db8b0f9ba2fde56cf0daef43df35a files/digest-openclipart-0.18-r1 560 +SHA256 23fcf06f176808f7f7a4a1a7468557a496889bec1a03420f29f7c4fea5c6695a files/digest-openclipart-0.18-r1 560 MD5 8dad4c602e8fc48cf21cf32d762b9af0 metadata.xml 231 +RMD160 edee523a81eb20b171a5dd298e8507ecd49230f6 metadata.xml 231 +SHA256 f9af69429b315694d8f6094781bf242d6235450fc58aba6e9e35e28099cc334a metadata.xml 231 +MD5 83fcc486b5d5eba78d77aa62bfe7d218 openclipart-0.18-r1.ebuild 2810 +RMD160 3f20548e6252478c2035098e2bf65ef7cc81c7cf openclipart-0.18-r1.ebuild 2810 +SHA256 4c89eb3622b26c1131d917cb3263fa9b7f4ed18a0912efa12c81646945eada41 openclipart-0.18-r1.ebuild 2810 MD5 a46c9926a60e3d9331d99b709337e436 openclipart-0.18.ebuild 2102 +RMD160 f0eacc691456e48ffd46647f34d34b3ae131a9fc openclipart-0.18.ebuild 2102 +SHA256 f9de4257fae54843400842160f9282e8ee7984872e0a842b32d77e8c5d7553a8 openclipart-0.18.ebuild 2102 diff --git a/x11-misc/openclipart/files/digest-openclipart-0.18-r1 b/x11-misc/openclipart/files/digest-openclipart-0.18-r1 new file mode 100644 index 000000000000..d5c1cb01501e --- /dev/null +++ b/x11-misc/openclipart/files/digest-openclipart-0.18-r1 @@ -0,0 +1,6 @@ +MD5 f13a58a7fcab9d8647ea528d28c4b813 openclipart-0.18-full.tar.bz2 116472396 +RMD160 438a387e2abd2fd6044282d2853747231206871f openclipart-0.18-full.tar.bz2 116472396 +SHA256 446a1d4af2fd7f9e4664853c778ef321e1aa6518a76065aa9d912f5914509db4 openclipart-0.18-full.tar.bz2 116472396 +MD5 84e6ee889c8eb1208904e8e6f7004e63 openclipart-0.18-svgonly.tar.bz2 82108957 +RMD160 cdd9855ba421d42f6e9d78e208e84dcf660a6cd0 openclipart-0.18-svgonly.tar.bz2 82108957 +SHA256 57572d443439759b0347da95a5457f988048976c7e13d70a09894cdee412be29 openclipart-0.18-svgonly.tar.bz2 82108957 diff --git a/x11-misc/openclipart/openclipart-0.18-r1.ebuild b/x11-misc/openclipart/openclipart-0.18-r1.ebuild new file mode 100644 index 000000000000..34239168098f --- /dev/null +++ b/x11-misc/openclipart/openclipart-0.18-r1.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/openclipart/openclipart-0.18-r1.ebuild,v 1.1 2006/03/16 19:24:20 nelchael Exp $ + +DESCRIPTION="Open Clip Art Library (openclipart.org)" +HOMEPAGE="http://www.openclipart.org/" + +# Ugly stuff warning: +SRC_URI="svg? ( !wmf? ( !png? ( !pdf? ( !doc? ( + http://openclipart.org/downloads/${PV}/${P}-svgonly.tar.bz2 + ) ) ) ) + png? ( http://www.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 ) + pdf? ( http://www.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 ) + wmf? ( http://www.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 ) + doc? ( http://www.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 ) + ) + !svg? ( http://www.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 )" + +LICENSE="public-domain" # creative commons +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc svg png pdf wmf gzip" + +# We don't really need anything to run +DEPEND="" +RDEPEND="" + +# Nothing to strip +RESTRICT="nostrip" + +# suggested basedir for cliparts +CLIPART="/usr/share/clipart/${PN}" + +src_unpack() { + + unpack "${A}" + + if ! use svg && ! use png && ! use pdf && ! use wmf; then + ewarn "No image formats specified - defaulting to all" + else + ! use pdf && MY_REMOVE="${MY_REMOVE} pdf" + ! use png && MY_REMOVE="${MY_REMOVE} png" + ! use svg && MY_REMOVE="${MY_REMOVE} svg" + ! use wmf && MY_REMOVE="${MY_REMOVE} wmf" + fi + + ! use doc && MY_REMOVE="${MY_REMOVE} txt" + + export MY_REMOVE + + MY_S="${WORKDIR}/openclipart-${PV}-" + if use wmf || use png || use pdf || use doc || ! use svg; then + MY_S="${MY_S}full" + else + MY_S="${MY_S}svgonly" + fi + export MY_S + + cd "${MY_S}/clipart/" + einfo "Removing useless files..." + + find \ + \( -name "automatic" -o -name "move" -o -name "*.rdf" -o \ + -name "*.spec" -o -name "*.log" -o -name "*.sxd" -o \ + -name "*~" -o -name ".*.swp" \ + \) -exec rm -f {} \; || die "Failed" + + rm -f LICENSE.txt LOG.txt PASSFAIL README README.txt \ + TODO index.xml keywords.idx || die "Failed" + +} + +src_compile() { + + cd "${MY_S}/clipart/" + for ext in ${MY_REMOVE}; do + einfo "Removing files - ${ext}..." + find -name "*.${ext}" -exec rm -f {} \; \ + || die "Failed - remove" + done + + if use gzip; then + + einfo "Compressing SVG files..." + find -name "*.svg" -print0 | xargs -L 1 -0 \ + bash -c 'gzip -9c "${1}" > "${1}z"; rm -f "${1}"' -- + + fi + + einfo "Compressing docs..." + find \ + \( -name "*.txt" -o -name "README" -o -name "AUTHORS" -o \ + -name "COPYING" \ + \) -exec gzip -9 {} \; || die "Failed - compress docs" + +} + +src_install() { + + dodir "${CLIPART}" || die "Failed - dodir" + + cd "${MY_S}/clipart" + find -type f -exec cp --parents {} "${D}/${CLIPART}" \; || \ + die "Failed - install" + + cd "${MY_S}" + dodoc LICENSE README NEWS VERSION ChangeLog + +} |