diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
commit | b7ebc951da8800f711142f69d9d958bde67a112d (patch) | |
tree | e318514216845acb8f2e49fff7a5cba4027e9d91 /media-gfx/openclipart | |
parent | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (diff) |
gentoo resync : 28.04.2019
Diffstat (limited to 'media-gfx/openclipart')
-rw-r--r-- | media-gfx/openclipart/Manifest | 2 | ||||
-rw-r--r-- | media-gfx/openclipart/openclipart-0.20.ebuild | 37 |
2 files changed, 16 insertions, 23 deletions
diff --git a/media-gfx/openclipart/Manifest b/media-gfx/openclipart/Manifest index 6151c2988c5c..e790d5ab8afd 100644 --- a/media-gfx/openclipart/Manifest +++ b/media-gfx/openclipart/Manifest @@ -1,3 +1,3 @@ DIST openclipart-0.20.tar.bz2 367385284 BLAKE2B b308270d6f55573a27d473b63128245b6e5ccdaec7d76598c09e3ad54ab4618b7fbf16bdc28c929856684727330f2edafc22535dd3c57426eee2bce6ef5b3c9d SHA512 2d3e0071e019cc272d220b5a4960d4dd7d8ca1ea36d2de7358c7b21e4b3135630075da032b3e274b88e6be8b7e3d331c02c9eebfd43e4e5b199c6016a8fbbdb7 -EBUILD openclipart-0.20.ebuild 1084 BLAKE2B 1294aef71a3848c82ff4e1f38fa54cb81c4b0f8b67ba2b4b00b6c932434eb64811d71b8c074ed9bc6ec1b505c4fd597bf218b045887bf98579f5625bfc59a9f3 SHA512 5e346dc816161f811c93c8027dde7e30b203cc088549b581a5ef4f6c2234b89500e82351952e43bfdc6a871bd6cc276bf5965b7e5d844a8744c98c71b529aab2 +EBUILD openclipart-0.20.ebuild 1047 BLAKE2B 1ff0188435a939aa7d9c478c9c2871b9c9274608166bc8eece20f19d205a91f0b885e95df9e317d5c9846655377497b2f63d030ddab130c9a568bc462d84173d SHA512 89c4a4ac01576a2b330377ec19004674eb4b90938e33b5b4883b05383a7d2c0927b5462b4597d9db920475847fcf116a42377d1cee5f4b23c8c9ca39d00b172f MISC metadata.xml 332 BLAKE2B bbd9ad47860ce7ed16d880960784854160dafdbd724c61372cae276840c69f1fe2ee7ef1646c877f7836fc46323e666d0a24f2019fb8e3905f7aa4c17f9a67a3 SHA512 58e164a238ec35cf87e8de731d9d7fc797432b0944277e2893d2ea7e70d49c5c82ec15352bcfe2ff8497f7f41d5cfd17f4fb3994bbbe17d9223d3f0c0522b9b4 diff --git a/media-gfx/openclipart/openclipart-0.20.ebuild b/media-gfx/openclipart/openclipart-0.20.ebuild index f512de948c2e..17b765217857 100644 --- a/media-gfx/openclipart/openclipart-0.20.ebuild +++ b/media-gfx/openclipart/openclipart-0.20.ebuild @@ -1,44 +1,37 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="2" +EAPI=7 DESCRIPTION="Open Clip Art Library (openclipart.org)" -HOMEPAGE="http://www.openclipart.org/" - +HOMEPAGE="https://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 + local removeext=( $(usev !png) $(usev !svg) ) + [[ -z ${removeext} ]] && elog "No image formats specified - defaulting to all (png and svg)" - 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" + local i + for i in "${removeext[@]}"; do + elog "Removing ${i} files..." + find -name "*.${i}" -delete || die "Failed removing files (${i})" 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}"' -- + + while IFS="" read -d $'\0' -r i ; do + gzip -9c "${i}" >"${i}z" || die "Failed compressing ${i}" + rm -f "${i}" || die "Failed removing temporary ${i}" + done < <(find "${S}" -name "*.svg" -print0) fi } |