aboutsummaryrefslogtreecommitdiff
path: root/graphics/rubygem-exifr
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2008-10-04 23:25:01 +0000
committerStanislav Sedov <stas@FreeBSD.org>2008-10-04 23:25:01 +0000
commit5282b73e06e6c94e0ce71c4144cf52078c08c3ae (patch)
treeb8c6b243cd772f44941eb2d3701b895fe682e8de /graphics/rubygem-exifr
parentdd58ad9decb514fe7751fc1b2203278f6d24f0ad (diff)
downloadports-5282b73e06e6c94e0ce71c4144cf52078c08c3ae.tar.gz
ports-5282b73e06e6c94e0ce71c4144cf52078c08c3ae.zip
Notes
Diffstat (limited to 'graphics/rubygem-exifr')
-rw-r--r--graphics/rubygem-exifr/Makefile27
-rw-r--r--graphics/rubygem-exifr/distinfo3
-rw-r--r--graphics/rubygem-exifr/files/exifr.patch7
-rw-r--r--graphics/rubygem-exifr/pkg-descr4
-rw-r--r--graphics/rubygem-exifr/pkg-plist33
5 files changed, 74 insertions, 0 deletions
diff --git a/graphics/rubygem-exifr/Makefile b/graphics/rubygem-exifr/Makefile
new file mode 100644
index 000000000000..fabe97f004a8
--- /dev/null
+++ b/graphics/rubygem-exifr/Makefile
@@ -0,0 +1,27 @@
+# Ports collection makefile for: rubygem-exifr
+# Date created: 4 October 2008
+# Whom: stas
+#
+# $FreeBSD$
+
+PORTNAME= exifr
+PORTVERSION= 0.10.6
+CATEGORIES= graphics rubygems
+MASTER_SITES= RF
+
+MAINTAINER= stas@FreeBSD.org
+COMMENT= A pure-ruby EXIF reader
+
+USE_RUBY= yes
+USE_RUBYGEMS= yes
+
+post-install:
+ cd ${PREFIX}/${GEM_LIB_DIR}/bin && \
+ ${PATCH} -p0 < ${FILESDIR}/exifr.patch && \
+ ${RM} -f ${PREFIX}/${GEM_LIB_DIR}/bin/exifr.orig
+ @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type f | \
+ ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},${GEM_DOC_DIR},' >> ${TMPPLIST}
+ @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type d -depth | \
+ ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},@dirrm ${GEM_DOC_DIR},' >> ${TMPPLIST}
+
+.include <bsd.port.mk>
diff --git a/graphics/rubygem-exifr/distinfo b/graphics/rubygem-exifr/distinfo
new file mode 100644
index 000000000000..fade2c7f1655
--- /dev/null
+++ b/graphics/rubygem-exifr/distinfo
@@ -0,0 +1,3 @@
+MD5 (rubygem/exifr-0.10.6.gem) = 6256d24af55812c40dfc9a23329d9cb6
+SHA256 (rubygem/exifr-0.10.6.gem) = b17a708706bb2c40a201ed2bf23264c216fd49e10a745959c0af4c5afeca68a5
+SIZE (rubygem/exifr-0.10.6.gem) = 207872
diff --git a/graphics/rubygem-exifr/files/exifr.patch b/graphics/rubygem-exifr/files/exifr.patch
new file mode 100644
index 000000000000..17b7de26d589
--- /dev/null
+++ b/graphics/rubygem-exifr/files/exifr.patch
@@ -0,0 +1,7 @@
+--- exifr.orig 2008-10-05 03:17:11.000000000 +0400
++++ exifr 2008-10-05 03:17:38.000000000 +0400
+@@ -1,3 +1,4 @@
++require 'rubygems'
+ require 'exifr'
+ include EXIFR
+
diff --git a/graphics/rubygem-exifr/pkg-descr b/graphics/rubygem-exifr/pkg-descr
new file mode 100644
index 000000000000..76f54b64ecec
--- /dev/null
+++ b/graphics/rubygem-exifr/pkg-descr
@@ -0,0 +1,4 @@
+ Exifr is a pure ruby library to extract EXIF info from
+image files. Both JPEG and TIFF formats are supported.
+
+WWW: http://rubyforge.org/projects/exifr
diff --git a/graphics/rubygem-exifr/pkg-plist b/graphics/rubygem-exifr/pkg-plist
new file mode 100644
index 000000000000..14417982ba22
--- /dev/null
+++ b/graphics/rubygem-exifr/pkg-plist
@@ -0,0 +1,33 @@
+%%GEM_CACHE%%
+%%GEM_LIB_DIR%%/CHANGELOG
+%%GEM_LIB_DIR%%/README
+%%GEM_LIB_DIR%%/Rakefile
+%%GEM_LIB_DIR%%/bin/exifr
+%%GEM_LIB_DIR%%/lib/exifr.rb
+%%GEM_LIB_DIR%%/lib/jpeg.rb
+%%GEM_LIB_DIR%%/lib/tiff.rb
+%%GEM_LIB_DIR%%/tests/data/1x1.jpg
+%%GEM_LIB_DIR%%/tests/data/Canon_PowerShot_A85.exif
+%%GEM_LIB_DIR%%/tests/data/Casio-EX-S20.exif
+%%GEM_LIB_DIR%%/tests/data/FUJIFILM-FinePix_S3000.exif
+%%GEM_LIB_DIR%%/tests/data/Panasonic-DMC-LC33.exif
+%%GEM_LIB_DIR%%/tests/data/Trust-DC3500_MINI.exif
+%%GEM_LIB_DIR%%/tests/data/apple-aperture-1.5.exif
+%%GEM_LIB_DIR%%/tests/data/canon-g3.exif
+%%GEM_LIB_DIR%%/tests/data/endless-loop.exif
+%%GEM_LIB_DIR%%/tests/data/exif.jpg
+%%GEM_LIB_DIR%%/tests/data/gps.exif
+%%GEM_LIB_DIR%%/tests/data/image.jpg
+%%GEM_LIB_DIR%%/tests/data/multiple-app1.jpg
+%%GEM_LIB_DIR%%/tests/data/nikon_d1x.tif
+%%GEM_LIB_DIR%%/tests/data/plain.tif
+%%GEM_LIB_DIR%%/tests/data/weird_date.exif
+%%GEM_LIB_DIR%%/tests/test_helper.rb
+%%GEM_LIB_DIR%%/tests/test_jpeg.rb
+%%GEM_LIB_DIR%%/tests/test_tiff.rb
+%%GEM_SPEC%%
+@dirrm %%GEM_LIB_DIR%%/bin
+@dirrm %%GEM_LIB_DIR%%/lib
+@dirrm %%GEM_LIB_DIR%%/tests/data
+@dirrm %%GEM_LIB_DIR%%/tests
+@dirrm %%GEM_LIB_DIR%%