diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/dcraw |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/dcraw')
-rw-r--r-- | media-gfx/dcraw/Manifest | 9 | ||||
-rw-r--r-- | media-gfx/dcraw/dcraw-9.27.0.ebuild | 108 | ||||
-rw-r--r-- | media-gfx/dcraw/files/conversion-examples.txt | 18 | ||||
-rw-r--r-- | media-gfx/dcraw/files/dcwrap | 27 | ||||
-rw-r--r-- | media-gfx/dcraw/metadata.xml | 16 |
5 files changed, 178 insertions, 0 deletions
diff --git a/media-gfx/dcraw/Manifest b/media-gfx/dcraw/Manifest new file mode 100644 index 000000000000..b9ecd9cc87d7 --- /dev/null +++ b/media-gfx/dcraw/Manifest @@ -0,0 +1,9 @@ +AUX conversion-examples.txt 545 SHA256 b6a5a658c550ffbd26bbc1b6e7723bced7461af234062af7d77e53441429d218 SHA512 47213effb868ac4754075e43a6194ccbbe3e1431ef47280a670ad7e843cf727ad63ebf76849210672a72a79b1f702ca112aeece12284191f11c859a54fc090a9 WHIRLPOOL f0b26fe656b1e0977b5af85d3787a86954da207eb9c731058d6d6cc7faecf436b9c39d5c78fe63ab60e5d185aa6f5e3254357b5bc7311abc153a7b2d92e8e858 +AUX dcwrap 437 SHA256 fd113fe5c1005116f8e03db59fb1f505667883f237abe0c799cd5a45d6ceb0bd SHA512 ba872972125a5394e8d29bf6e5b612959b228265885218061eeff6a17f87dd1891e33876c49fd4071a76517843b6709d16f1fa976994c49c9357d7dc7211af9e WHIRLPOOL 99b483bf0a09ae7b49ea45d1fd45e354f3e59e8964b3c858cccba1875cacffb88d314a2767ed134357018b3d38ae38e46e9e2ba844d8ee6c51d2a27ca9adccb2 +DIST dcraw-9.27.0.tar.gz 191803 SHA256 c1d8cc4f19752a3d3aaab1fceb712ea85b912aa25f1f33f68c69cd42ef987099 SHA512 2b2faed3f1889ef82a50721f7d3f22b081104b586d644d369fa849ad08604c10898e9dfccf8935828cf432db74352161fe6d1f9bde5fbfa4dd8435188767a17a WHIRLPOOL 6107279b61c6dfca5fda63cb57892c31227dae72259e1eb96e5280ff79a77a8e65e4d23ae1c99833bf3eac16473f8342786498156a31e938cf644c1a92c53ada +DIST parse-1.73.tar.bz2 8186 SHA256 51f75837b7fa7f6389f43c875ad8320c41a44c4213922dc767e16dc424462c3c SHA512 06ffaf72695dc86bfc2bdd10d4f732bc428b72d427f4c10e93fc58536513477cf297adb56fb9cfc5ba5fd5b6b4cd197c33d8dac957a0a1bbe65b23393b64278c WHIRLPOOL 1abc642a60f3f5b54efa29722ff7674457b88811ef25e557b7823ff05f6ee55989e35c0b9dad04d74c769bcca1cb45f580985de92bb4e40cd63b6d0a35b3a0e2 +DIST rawphoto-1.32.tar.bz2 3841 SHA256 3348a83a44fa941924a4e743f88d993b71d28ba995f80e6765d6c19b6eeaea4c SHA512 6ee5b6c4e4266c8e04221c894c4e737f8a6d2c6f0cc9c82db73064afd68488bd60de19b86b2d7b82780283bbb9f8156ef3149c1c730f09a00dce632744b44d56 WHIRLPOOL af840eae74d74f83b7874a769e30ff0e613a5f1dba4d20fa315f6d9685fabffbe804ad878174f3ee274a6083105f1baa317f52b346afb493c34cea0e5c09c566 +EBUILD dcraw-9.27.0.ebuild 2955 SHA256 f20d0eb6254af182af18f6b90f6b35052300e79960edc59b0a7ee336e5819806 SHA512 ec2dd6741539760db1a1748037874d85b815b05edbe586e4bbc28c5c42e0e5ee1f00d09d60fe5cec027686d56549ba3df97ce5b03b8ebf0e76500e52bb6be960 WHIRLPOOL 55f3b5c0f4d6f4df449e55be2d3083aa01d35289f156f316d3796498547b9d1108821bda32ee6aace4cc7d1870264ceb94191c63c359a0ab7e94f72d1c3635ff +MISC ChangeLog 3694 SHA256 c4e863e4bd44a960cd4d4186afe7bce63989778a60a966fa343b8ffefe0a0741 SHA512 6e3bd5167fe8b8a04787dedaca18111fc694f53861dc6ef763445132f707dbe5c1ffcbcbc51363ea82877039069e567caa6364bbf54bfc569cc8cf5c10a4e347 WHIRLPOOL af03736e630bb8056bac662c77dc400143358b16659cda5a3245c18be69d35c2b45db76746b4d05e5efa1ecbdae37ad8cc79609a39de85cfb2b3cb60f68914c1 +MISC ChangeLog-2015 13635 SHA256 83e2d7eb5619eda46e05588a81d722e72a0604df0db6f5c7c0d7de5664ecedeb SHA512 058f5da70a16de42c38a73ac7081ca0b9620f7b08500778ffd95f16e99874becf16cfb431e72ba1d5f8214e7439e40b1e9bc27f84df0fb8585d24df2827bfdd1 WHIRLPOOL 841d3021a0306871eced5064de511a6ddaa3633e86049dd9781f52fc91198f2d2666199fea8642a388a684bce22a9537364b3daed6007f8bb0744dc1740d694c +MISC metadata.xml 701 SHA256 938b9b663d816e85f0a4b5d142dcb25b4e782e215fe6043bdbfe036a34c9ed43 SHA512 0758eece42b5007b53e04f0ddb6385fbdea360afc8a4cfd94d3f5234e4a677819cbebdca3a78c7f3765770e6ccb5b2d74f20199b7c167137fd15554cc14d0755 WHIRLPOOL daaf89dab6747f23b730febb35994341ffbde3336fc90ded8754b2f438cf19d15bc1d9c7f623f1c0f7ac096f390d65ddf4ac4d60a8f3850cae6991fc67a1c861 diff --git a/media-gfx/dcraw/dcraw-9.27.0.ebuild b/media-gfx/dcraw/dcraw-9.27.0.ebuild new file mode 100644 index 000000000000..75b8edc043dd --- /dev/null +++ b/media-gfx/dcraw/dcraw-9.27.0.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils readme.gentoo toolchain-funcs + +DESCRIPTION="Command-line decoder for raw digital photos" +HOMEPAGE="https://www.cybercom.net/~dcoffin/dcraw/" +SRC_URI="https://www.cybercom.net/~dcoffin/dcraw/archive/${P}.tar.gz + mirror://gentoo/parse-1.73.tar.bz2 + gimp? ( mirror://gentoo/rawphoto-1.32.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" +LANGS=" ca cs de da eo es fr hu it nl pl pt ru sv zh_CN zh_TW" +IUSE="nls gimp jpeg jpeg2k lcms ${LANGS// / linguas_}" + +COMMON_DEPEND=" + jpeg? ( virtual/jpeg:0 ) + lcms? ( media-libs/lcms:2 ) + jpeg2k? ( media-libs/jasper:= ) + gimp? ( media-gfx/gimp ) +" +DEPEND="${COMMON_DEPEND} + nls? ( sys-devel/gettext ) + gimp? ( virtual/pkgconfig ) +" +RDEPEND="${COMMON_DEPEND} + media-libs/netpbm +" + +S=${WORKDIR}/dcraw + +DOC_CONTENTS=" + See conversion-examples.txt.gz on how to convert + the PPM files produced by dcraw to other image formats.\n + + \nThe functionality of the external program 'fujiturn' was + incorporated into dcraw and is automatically used now.\n + + \nThere's an example wrapper script included called 'dcwrap'. + This package also includes 'dcparse', which extracts + thumbnail images (preferably JPEGs) from any raw digital + camera formats that have them, and shows table contents. +" + +run_build() { + einfo "${@}" + ${@} || die +} + +src_prepare() { + rename dcraw_ dcraw. dcraw_*.1 || die "Failed to rename" +} + +src_compile() { + local ECFLAGS="-O2" # Without optimisation build fails + local ELIBS="-lm" + + use lcms && ELIBS="-llcms2 ${ELIBS}" || ECFLAGS+=" -DNO_LCMS=yes" + use jpeg && ELIBS="-ljpeg ${ELIBS}" || ECFLAGS+=" -DNO_JPEG=yes" + use jpeg2k && ELIBS="-ljasper ${ELIBS}" || ECFLAGS+=" -DNO_JASPER=yes" + use nls && ECFLAGS+=" -DLOCALEDIR=\"/usr/share/locale/\"" + + run_build $(tc-getCC) ${ECFLAGS} ${CFLAGS} ${LDFLAGS} -o dcraw dcraw.c ${ELIBS} + + run_build $(tc-getCC) -O2 ${CFLAGS} ${LDFLAGS} -o dcparse parse.c + + # rawphoto gimp plugin + if use gimp; then + run_build $(tc-getCC) ${CFLAGS} ${LDFLAGS} \ + $(pkg-config --cflags gimpui-2.0) rawphoto.c -o rawphoto \ + $(pkg-config --libs gimpui-2.0) + fi + + if use nls; then + for lang in ${LANGS}; do + use linguas_${lang} && run_build msgfmt -c -o dcraw_${lang}.mo dcraw_${lang}.po + done + fi +} + +src_install() { + dobin dcraw dcparse + dodoc "${FILESDIR}"/{conversion-examples.txt,dcwrap} + + # rawphoto gimp plugin + if use gimp; then + insinto "$(pkg-config --variable=gimplibdir gimp-2.0)/plug-ins" + insopts -m0755 + doins rawphoto + fi + + doman dcraw.1 + + if use nls; then + for lang in ${LANGS}; do + if use linguas_${lang}; then + [[ -f dcraw.${lang}.1 ]] && doman dcraw.${lang}.1 + insinto /usr/share/locale/${lang}/LC_MESSAGES + newins dcraw_${lang}.mo dcraw.mo || die "failed to install dcraw_${lang}.mo" + fi + done + fi + + readme.gentoo_create_doc +} diff --git a/media-gfx/dcraw/files/conversion-examples.txt b/media-gfx/dcraw/files/conversion-examples.txt new file mode 100644 index 000000000000..8f179e2ed1e6 --- /dev/null +++ b/media-gfx/dcraw/files/conversion-examples.txt @@ -0,0 +1,18 @@ +Conversion examples +=================== + +CCD-RAW -> TIFF, using 'pnmtotiff' from the 'media-libs/netpbm' package: + + $ dcraw -c crw_0001.crw | pnmtotiff -truecolor > crw_0001.tiff + +CCD-RAW -> PNG, using 'pnmtopng' from the 'media-libs/netpbm' package: + + $ dcraw -c crw_0001.crw | pnmtopng > crw_0001.png + +CCD-RAW -> BMP, using 'ppmtobmp' from the 'media-libs/netpbm' package: + + $ dcraw -c crw_0001.crw | ppmtobmp > crw_0001.bmp + +CCD-RAW -> JPEG, using 'cjpeg' from the 'media-libs/jpeg' package: + + $ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg diff --git a/media-gfx/dcraw/files/dcwrap b/media-gfx/dcraw/files/dcwrap new file mode 100644 index 000000000000..4d81e011c67d --- /dev/null +++ b/media-gfx/dcraw/files/dcwrap @@ -0,0 +1,27 @@ +#!/bin/sh + +# Rough equivalents to XV's Sharpen algorithm + +cat > sharpen50.pgm << xx +P2 3 3 18 +8 8 8 8 26 8 8 8 8 +xx +cat > sharpen66.pgm << xx +P2 3 3 18 +7 7 7 7 34 7 7 7 7 +xx +cat > sharpen75.pgm << xx +P2 3 3 6 +2 2 2 2 14 2 2 2 2 +xx +cat > sharpen90.pgm << xx +P2 3 3 2 +0 0 0 0 10 0 0 0 0 +xx + +for x in `ls *.crw | cut -d. -f1` +do + dcraw -f -c $x.crw | pnmconvol sharpen66.pgm \ + | cjpeg -quality 90 > $x.jpeg + touch -r $x.crw $x.jpeg +done diff --git a/media-gfx/dcraw/metadata.xml b/media-gfx/dcraw/metadata.xml new file mode 100644 index 000000000000..4bd39cb546fb --- /dev/null +++ b/media-gfx/dcraw/metadata.xml @@ -0,0 +1,16 @@ +<?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> + <longdescription> + This utility converts the native (RAW), format of various digital cameras into + netpbm portable pixmap (.ppm) image. Supports the following models: Canon, + Kodak, Olympus, Nikon, Fuji, Minolta and Sigma (see + http://www.cybercom.net/~dcoffin/dcraw/ for full list) Note: This utility does + not read directly from the cameras, only the files after they have been + downloaded, use gphoto2 for that. + </longdescription> +</pkgmetadata> |