summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2009-12-13 08:54:29 +0000
committerPeter Volkov <pva@gentoo.org>2009-12-13 08:54:29 +0000
commit41cec3399248fe9529794e14e10eb42c734a4485 (patch)
treee681aa03bb743a39f769565e6098882f8c231805 /media-gfx/dcraw/files
parentVersion bump. (diff)
downloadgentoo-2-41cec3399248fe9529794e14e10eb42c734a4485.tar.gz
gentoo-2-41cec3399248fe9529794e14e10eb42c734a4485.tar.bz2
gentoo-2-41cec3399248fe9529794e14e10eb42c734a4485.zip
Version bump, #251665, thank lots of people there. Fixes build issue for gimp plugin, #240648, thank Kerie for report and Andrew Savchenko for work. Also should fix sandbox violation, #267119, thank GNUtoo@no-log.org for report.
(Portage version: 2.2_rc55/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/dcraw/files')
-rw-r--r--media-gfx/dcraw/files/conversion-examples.txt18
-rw-r--r--media-gfx/dcraw/files/dcwrap27
-rwxr-xr-xmedia-gfx/dcraw/files/update-dcparse-and-rawphoto-tarballs.sh20
3 files changed, 65 insertions, 0 deletions
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/files/update-dcparse-and-rawphoto-tarballs.sh b/media-gfx/dcraw/files/update-dcparse-and-rawphoto-tarballs.sh
new file mode 100755
index 000000000000..42b687962b36
--- /dev/null
+++ b/media-gfx/dcraw/files/update-dcparse-and-rawphoto-tarballs.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# update parse and rawphoto tarballs
+
+echo "Updating parse tarbal..."
+tmpdir=$(mktemp -d)
+cd ${tmpdir}
+for file in parse.c rawphoto.c; do
+ wget "http://www.cybercom.net/~dcoffin/dcraw/${file}" && \
+ mkdir dcraw && \
+ mv ${file} dcraw && \
+ tar jcvf ${file/.c}-$(awk '/Revision:/{print $2}' dcraw/${file}).tar.bz2 dcraw
+ if [[ $? != 0 ]]; then
+ echo "Unable to update ${file}."
+ exit 1
+ fi
+ cd ${tmpdir} && rm -r dcraw
+done
+
+echo "Grab tarballs at ${tmpdir} move into $(portageq distdir) and update ebuild."