summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-06-03 02:17:30 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-06-03 02:17:30 +0000
commit9fd4ccd058ed592f712dcd94198d3c1ed3385b62 (patch)
tree3367fc2e4f4b6318adb7f250357aadb7814bd930 /media-gfx/openclipart
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-9fd4ccd058ed592f712dcd94198d3c1ed3385b62.tar.gz
gentoo-2-9fd4ccd058ed592f712dcd94198d3c1ed3385b62.tar.bz2
gentoo-2-9fd4ccd058ed592f712dcd94198d3c1ed3385b62.zip
Move from x11-misc wrt #201044.
(Portage version: 2.1.6.13/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'media-gfx/openclipart')
-rw-r--r--media-gfx/openclipart/ChangeLog83
-rw-r--r--media-gfx/openclipart/metadata.xml8
-rw-r--r--media-gfx/openclipart/openclipart-0.18-r1.ebuild109
-rw-r--r--media-gfx/openclipart/openclipart-0.19.ebuild49
4 files changed, 249 insertions, 0 deletions
diff --git a/media-gfx/openclipart/ChangeLog b/media-gfx/openclipart/ChangeLog
new file mode 100644
index 000000000000..b992a45c66b0
--- /dev/null
+++ b/media-gfx/openclipart/ChangeLog
@@ -0,0 +1,83 @@
+# ChangeLog for media-gfx/openclipart
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/openclipart/ChangeLog,v 1.1 2009/06/03 02:17:30 ssuominen Exp $
+
+ 03 Jun 2009; Samuli Suominen <ssuominen@gentoo.org>
+ +openclipart-0.18-r1.ebuild, +openclipart-0.19.ebuild, +metadata.xml:
+ Move from x11-misc wrt #201044.
+
+*openclipart-0.19 (11 May 2009)
+
+ 11 May 2009; Thilo Bangert <bangert@gentoo.org> +openclipart-0.19.ebuild:
+ version bump - bug #264732
+
+ 24 Jan 2009; nixnut <nixnut@gentoo.org> openclipart-0.18-r1.ebuild:
+ ppc stable #254547
+
+ 19 Jan 2009; Jeremy Olexa <darkside@gentoo.org>
+ openclipart-0.18-r1.ebuild:
+ amd64 stable, bug 254547
+
+ 15 Oct 2007; Krzysiek Pawlik <nelchael@gentoo.org>
+ openclipart-0.18-r1.ebuild:
+ Fix SRC_URI, see bug #185982.
+
+ 02 Jul 2007; Piotr Jaroszyński <peper@gentoo.org>
+ openclipart-0.18-r1.ebuild:
+ (QA) RESTRICT clean up.
+
+ 21 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
+ Redigest for Manifest2
+
+ 23 May 2006; Krzysiek Pawlik <nelchael@gentoo.org>
+ -openclipart-0.18.ebuild, openclipart-0.18-r1.ebuild:
+ Stable on x86.
+
+*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:
+ Stable on x86, removed old version.
+
+*openclipart-0.18 (31 Oct 2005)
+
+ 31 Oct 2005; Krzysiek Pawlik <nelchael@gentoo.org>
+ -openclipart-0.15.ebuild, +openclipart-0.18.ebuild:
+ Version bump.
+
+*openclipart-0.17-r1 (26 Sep 2005)
+
+ 26 Sep 2005; Krzysiek Pawlik <nelchael@gentoo.org>
+ -openclipart-0.17.ebuild, +openclipart-0.17-r1.ebuild:
+ Fix bug 107254.
+
+*openclipart-0.17 (25 Sep 2005)
+
+ 25 Sep 2005; Krzysiek Pawlik <nelchael@gentoo.org>
+ -openclipart-0.12.ebuild, +openclipart-0.17.ebuild:
+ Version bump, removed 0.12
+
+*openclipart-0.15 (09 Jul 2005)
+
+ 09 Jul 2005; Jonathan Smith <smithj@gentoo.org> +openclipart-0.15.ebuild:
+ version bump
+
+ 09 Jul 2005; Jonathan Smith <smithj@gentoo.org> openclipart-0.12.ebuild:
+ added ~amd64
+
+ 24 Jun 2005; David Holm <dholm@gentoo.org> openclipart-0.12.ebuild:
+ Added to ~ppc.
+
+*openclipart-0.12 (23 Jun 2005)
+
+ 23 Jun 2005; Jonathan Smith <smithj@gentoo.org> +metadata.xml,
+ +openclipart-0.12.ebuild:
+ initial commit for #62278; thanks to Stefan Briesenick <sbriesen@gentoo.org>
+ for the ebuild
+
diff --git a/media-gfx/openclipart/metadata.xml b/media-gfx/openclipart/metadata.xml
new file mode 100644
index 000000000000..7600f7a1fc40
--- /dev/null
+++ b/media-gfx/openclipart/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>graphics</herd>
+ <use>
+ <flag name="gzip">Compresses clip art using gzip</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/openclipart/openclipart-0.18-r1.ebuild b/media-gfx/openclipart/openclipart-0.18-r1.ebuild
new file mode 100644
index 000000000000..eb5752a5b7ff
--- /dev/null
+++ b/media-gfx/openclipart/openclipart-0.18-r1.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/openclipart/openclipart-0.18-r1.ebuild,v 1.1 2009/06/03 02:17:30 ssuominen Exp $
+
+DESCRIPTION="Open Clip Art Library (openclipart.org)"
+HOMEPAGE="http://www.openclipart.org/"
+
+# Ugly stuff warning:
+SRC_URI="svg? ( !wmf? ( !png? ( !pdf? ( !doc? (
+ http://download.openclipart.org/downloads/${PV}/${P}-svgonly.tar.bz2
+ ) ) ) )
+ png? ( http://download.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 )
+ pdf? ( http://download.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 )
+ wmf? ( http://download.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 )
+ doc? ( http://download.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 )
+ )
+ !svg? ( http://download.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="strip"
+
+# 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
+
+}
diff --git a/media-gfx/openclipart/openclipart-0.19.ebuild b/media-gfx/openclipart/openclipart-0.19.ebuild
new file mode 100644
index 000000000000..8f92639ee4cb
--- /dev/null
+++ b/media-gfx/openclipart/openclipart-0.19.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/openclipart/openclipart-0.19.ebuild,v 1.1 2009/06/03 02:17:30 ssuominen Exp $
+
+EAPI="2"
+
+DESCRIPTION="Open Clip Art Library (openclipart.org)"
+HOMEPAGE="http://www.openclipart.org/"
+
+SRC_URI="http://download.openclipart.org/downloads/${PV}/${P}.tar.bz2"
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="svg png gzip"
+
+# We don't really need anything to run
+DEPEND=""
+RDEPEND=""
+
+# suggested basedir for cliparts
+CLIPART="/usr/share/clipart/${PN}"
+
+src_compile() {
+ local removeext
+
+ if ! use svg && ! use png; then
+ elog "No image formats specified - defaulting to all (png and svg)"
+ else
+ ! use png && removeext="${removeext} png"
+ ! use svg && removeext="${removeext} svg"
+ fi
+
+ for ext in ${removeext}; do
+ elog "Removing ${ext} files..."
+ 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
+}
+
+src_install() {
+ insinto ${CLIPART}
+ doins -r .
+}