summaryrefslogtreecommitdiff
path: root/media-gfx/openclipart
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 /media-gfx/openclipart
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/openclipart')
-rw-r--r--media-gfx/openclipart/Manifest5
-rw-r--r--media-gfx/openclipart/metadata.xml11
-rw-r--r--media-gfx/openclipart/openclipart-0.20.ebuild48
3 files changed, 64 insertions, 0 deletions
diff --git a/media-gfx/openclipart/Manifest b/media-gfx/openclipart/Manifest
new file mode 100644
index 000000000000..b4333e51b47a
--- /dev/null
+++ b/media-gfx/openclipart/Manifest
@@ -0,0 +1,5 @@
+DIST openclipart-0.20.tar.bz2 367385284 SHA256 6f1fc33b0149e755196882ecab083d56daa3ff6ed78823b36be01f40abc7eb87 SHA512 2d3e0071e019cc272d220b5a4960d4dd7d8ca1ea36d2de7358c7b21e4b3135630075da032b3e274b88e6be8b7e3d331c02c9eebfd43e4e5b199c6016a8fbbdb7 WHIRLPOOL 5c657ac72c816f669c08256db85588fb6462e8e176eae88699174f5f4ae8e306ffc77c47c2951ce96b3d5614f6ed37867971582e56faf190742470a16a26bc3a
+EBUILD openclipart-0.20.ebuild 1084 SHA256 e3cf2c6b50af3d7822d7cc59bee003764db6e07f61bbf81a9e07d0a44449d4e5 SHA512 5e346dc816161f811c93c8027dde7e30b203cc088549b581a5ef4f6c2234b89500e82351952e43bfdc6a871bd6cc276bf5965b7e5d844a8744c98c71b529aab2 WHIRLPOOL 1442d0ea86e15ae9c85c3e8e0e4e6c47899480372ec933a8c9525e2490a5f657b39fc10cf42845b80edeeb6f42d9624b62914021a5751eff13e0d99d9796a78e
+MISC ChangeLog 2438 SHA256 bff2582f9f8ac3078132e9fc3f4d938e2174bd8d3b71addb93d00d10057e8183 SHA512 b795ba3c41e6f787401e91ea4f52a8cbc87690ae3c5e8ce9fad79cdc76908c7533947badd39c7d918401da263b0217b225e8d86fcea9e95540f0e106481d7403 WHIRLPOOL b304760e52c53088972af40ee2af4dab6ecef92b360f315359a353bb8aa6f2d1b01fb7c7f64e35b547d43394932cdf6b10bf0445cd40480e24df6b53bf2c2070
+MISC ChangeLog-2015 3623 SHA256 94b3c99a052cbdaecf21b95447e2d02e7ef1bd721423a49572a2507fa70e7189 SHA512 6fea5248401ee48c18e133c56688b038e3fa4712855d3cfbeaad647bb223f559d0f5f9be6f38f2d8491171c41ed7fb0ee923f56b54b48f7a8b94071a16f192c9 WHIRLPOOL 8c7a55e90f74bfd5f179333d43f7f55de09762892ee77d6cbebc89591c98fd54c658fc686dd27325472188bfbe483eb37ca828a426486db5f1f24ef7311010ff
+MISC metadata.xml 332 SHA256 47449e19e82f3c0622b23ca33e5ebd3630441b9dd3fba4c4d3ecd0cd1c5636e7 SHA512 58e164a238ec35cf87e8de731d9d7fc797432b0944277e2893d2ea7e70d49c5c82ec15352bcfe2ff8497f7f41d5cfd17f4fb3994bbbe17d9223d3f0c0522b9b4 WHIRLPOOL fa6dc0f5988eb89da2e79ab95a096f1beccb3ea2a37d7535a4b256733f6a5bb931b35f2ceb889fd9f13ac79a33265680a6652ddcca72c95502b9b2a8e2592067
diff --git a/media-gfx/openclipart/metadata.xml b/media-gfx/openclipart/metadata.xml
new file mode 100644
index 000000000000..083c4f67c8cd
--- /dev/null
+++ b/media-gfx/openclipart/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <use>
+ <flag name="gzip">Compresses clip art using gzip</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/openclipart/openclipart-0.20.ebuild b/media-gfx/openclipart/openclipart-0.20.ebuild
new file mode 100644
index 000000000000..f512de948c2e
--- /dev/null
+++ b/media-gfx/openclipart/openclipart-0.20.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 .
+}