[DRE-commits] r5767 - in tags/libprawn-ruby: . 0.9.1+dfsg2-1/debian

Gunnar Wolf gwolf at alioth.debian.org
Fri Aug 13 22:18:03 UTC 2010


Author: gwolf
Date: 2010-08-13 22:18:02 +0000 (Fri, 13 Aug 2010)
New Revision: 5767

Added:
   tags/libprawn-ruby/0.9.1+dfsg2-1/
   tags/libprawn-ruby/0.9.1+dfsg2-1/debian/README.source
   tags/libprawn-ruby/0.9.1+dfsg2-1/debian/changelog
   tags/libprawn-ruby/0.9.1+dfsg2-1/debian/control
   tags/libprawn-ruby/0.9.1+dfsg2-1/debian/rules
Removed:
   tags/libprawn-ruby/0.9.1+dfsg2-1/debian/README.source
   tags/libprawn-ruby/0.9.1+dfsg2-1/debian/changelog
   tags/libprawn-ruby/0.9.1+dfsg2-1/debian/control
   tags/libprawn-ruby/0.9.1+dfsg2-1/debian/rules
Log:
[svn-buildpackage] Tagging libprawn-ruby 0.9.1+dfsg2-1

Deleted: tags/libprawn-ruby/0.9.1+dfsg2-1/debian/README.source
===================================================================
--- trunk/libprawn-ruby/debian/README.source	2010-08-10 07:45:47 UTC (rev 5765)
+++ tags/libprawn-ruby/0.9.1+dfsg2-1/debian/README.source	2010-08-13 22:18:02 UTC (rev 5767)
@@ -1,34 +0,0 @@
-	     Where do the three orig tarballs come from?
-	     ===========================================
-
-Starting with version 0.6.3+dfsg-1, this package will be built using
-the dpkg 3.0 (quilt) format. This means that, unlike how it has been
-handled up to now, the package will no longer be built off one, but
-off three separate source packages. They are named:
-
-libprawn-ruby_<version>.orig.tar.gz
-libprawn-ruby_<version>.orig-ttfunk.tar.gz
-libprawn-ruby_<version>.orig-pdfinspector.tar.gz
-
-I won't go into details explaining how and why are they handled this
-way (see the dpkg-source manpage for that). Now, as for where each
-tarball is downloaded from:
-
-The upstream authors do not directly provide tarballs, but merely tag
-their official Git tree at github (see debian/copyright for the
-specific URLs). We get the main tarballs by using
-githubredir.debian.net's interface, respectively at:
-
-http://githubredir.debian.net/github/sandal/ttfunk
-http://githubredir.debian.net/github/sandal/pdf-inspector
-
-[ update - April 2010 ]
-
-The upstream authors do not always tag the ttfunk and pdf-inspector
-trees, so we reached a compromise solution: Ship with the immediate
-previous Git tag for both subprojects. 
-
-Anyway, at least up to this moment, ttfunk and pdf-inspector have a
-_way_ lower change rate than the main Prawn project.
-
- -- Gunnar Wolf <gwolf at debian.org>, Fri,  9 Apr 2010 18:19:17 -0500

Copied: tags/libprawn-ruby/0.9.1+dfsg2-1/debian/README.source (from rev 5766, trunk/libprawn-ruby/debian/README.source)
===================================================================
--- tags/libprawn-ruby/0.9.1+dfsg2-1/debian/README.source	                        (rev 0)
+++ tags/libprawn-ruby/0.9.1+dfsg2-1/debian/README.source	2010-08-13 22:18:02 UTC (rev 5767)
@@ -0,0 +1,52 @@
+	     Where do the three orig tarballs come from?
+	     ===========================================
+
+Starting with version 0.6.3+dfsg-1, this package will be built using
+the dpkg 3.0 (quilt) format. This means that, unlike how it has been
+handled up to now, the package will no longer be built off one, but
+off three separate source packages. They are named:
+
+libprawn-ruby_<version>.orig.tar.gz
+libprawn-ruby_<version>.orig-ttfunk.tar.gz
+libprawn-ruby_<version>.orig-pdfinspector.tar.gz
+
+I won't go into details explaining how and why are they handled this
+way (see the dpkg-source manpage for that). Now, as for where each
+tarball is downloaded from:
+
+The upstream authors do not directly provide tarballs, but merely tag
+their official Git tree at github (see debian/copyright for the
+specific URLs). We get the main tarballs by using
+githubredir.debian.net's interface, respectively at:
+
+http://githubredir.debian.net/github/sandal/ttfunk
+http://githubredir.debian.net/github/sandal/pdf-inspector
+
+[ update - April 2010 ]
+
+The upstream authors do not always tag the ttfunk and pdf-inspector
+trees, so we reached a compromise solution: Ship with the immediate
+previous Git tag for both subprojects. 
+
+Anyway, at least up to this moment, ttfunk and pdf-inspector have a
+_way_ lower change rate than the main Prawn project.
+
+	      What's the deal with the +dfsg versioning?
+	      ==========================================
+
+The Prawn module as shipped by upstream includes two areas regarded
+non-free by Debian:
+
+- Images in the data/images directory. Some of the included images are
+  protected as trademarks (i.e. rails) or their copyright status is
+  nonfree. Look at README.missing_images for further details.
+
+- Font files in the data/fonts directory. Prawn ships several free
+  fonts, but also with some fonts for which their copyright
+  information is not clear (or clearly non-free). Although they are
+  free-as-in-beer, we cannot legally redistribute them.
+
+  We have removed all fonts save for the core 14 PostScript AFM fonts,
+  which _are_ free.
+
+ -- Gunnar Wolf <gwolf at debian.org>, Fri, 13 Aug 2010 16:44:57 -0500

Deleted: tags/libprawn-ruby/0.9.1+dfsg2-1/debian/changelog
===================================================================
--- trunk/libprawn-ruby/debian/changelog	2010-08-10 07:45:47 UTC (rev 5765)
+++ tags/libprawn-ruby/0.9.1+dfsg2-1/debian/changelog	2010-08-13 22:18:02 UTC (rev 5767)
@@ -1,56 +0,0 @@
-libprawn-ruby (0.9.1+dfsg-1) unstable; urgency=low
-
-  [ Paul van Tilburg ]
-  * debian/watch: small fix to keep PET happy.
-
-  [ Gunnar Wolf ]
-  * New upstream release
-  * Standards-version 3.8.3→3.8.4 (no changes)
-  * Dropped the generated ruby1.9 binary package in favor of the ruby1.9.1
-    one; bumping up the build-dependency on ruby-pkg-tools accordingly
-    (Closes: #569880)
-
- -- Gunnar Wolf <gwolf at debian.org>  Fri, 09 Apr 2010 18:21:04 -0500
-
-libprawn-ruby (0.7.1+dfsg-1) unstable; urgency=low
-
-  * New upstream release
-
- -- Gunnar Wolf <gwolf at debian.org>  Mon, 04 Jan 2010 11:17:49 -0600
-
-libprawn-ruby (0.6.3+dfsg-2) unstable; urgency=low
-
-  * Added a (very!) simple redirection allowing for API stability,
-    requiring "prawn/core" when only "prawn" is requested
-
- -- Gunnar Wolf <gwolf at debian.org>  Fri, 27 Nov 2009 13:28:26 -0600
-
-libprawn-ruby (0.6.3+dfsg-1) unstable; urgency=low
-
-  [ Ryan Niebur ]
-  * fixed long description (Closes: #542457)
-
-  [ Gunnar Wolf ]
-  * Pointing debian/watch to githubredir instead of rubyforge, as new
-    upstream versions have not been noticed :-/
-  * New upstream release
-  * Switched to 3.0 (quilt) source format; documenting the origin of the
-    three orig.tar.gz files in README.source
-  * The (so far only) patch is documented following the DEP3 guidelines
-
- -- Gunnar Wolf <gwolf at debian.org>  Tue, 24 Nov 2009 17:06:18 -0600
-
-libprawn-ruby (0.4.1+dfsg-2) unstable; urgency=low
-
-  * add build dep on ruby 1.9 (Closes: #543035)
-  * Add myself to Uploaders
-  * Debian Policy 3.8.3
-  * add README.source
-
- -- Ryan Niebur <ryanryan52 at gmail.com>  Sun, 23 Aug 2009 11:25:23 -0700
-
-libprawn-ruby (0.4.1+dfsg-1) unstable; urgency=low
-
-  * Initial upload (Closes: #532796)
-
- -- Gunnar Wolf <gwolf at debian.org>  Tue, 30 Jun 2009 17:35:16 -0500

Copied: tags/libprawn-ruby/0.9.1+dfsg2-1/debian/changelog (from rev 5766, trunk/libprawn-ruby/debian/changelog)
===================================================================
--- tags/libprawn-ruby/0.9.1+dfsg2-1/debian/changelog	                        (rev 0)
+++ tags/libprawn-ruby/0.9.1+dfsg2-1/debian/changelog	2010-08-13 22:18:02 UTC (rev 5767)
@@ -0,0 +1,63 @@
+libprawn-ruby (0.9.1+dfsg2-1) unstable; urgency=low
+
+  * New +dfsg version, no longer including non-free fonts (Closes: #592915)
+  * Standards-version: 3.8.4 → 3.9.1.0 (No changes needed)
+
+ -- Gunnar Wolf <gwolf at debian.org>  Fri, 13 Aug 2010 16:16:36 -0500
+
+libprawn-ruby (0.9.1+dfsg-1) unstable; urgency=low
+
+  [ Paul van Tilburg ]
+  * debian/watch: small fix to keep PET happy.
+
+  [ Gunnar Wolf ]
+  * New upstream release
+  * Standards-version 3.8.3→3.8.4 (no changes)
+  * Dropped the generated ruby1.9 binary package in favor of the ruby1.9.1
+    one; bumping up the build-dependency on ruby-pkg-tools accordingly
+    (Closes: #569880)
+
+ -- Gunnar Wolf <gwolf at debian.org>  Fri, 09 Apr 2010 18:21:04 -0500
+
+libprawn-ruby (0.7.1+dfsg-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Gunnar Wolf <gwolf at debian.org>  Mon, 04 Jan 2010 11:17:49 -0600
+
+libprawn-ruby (0.6.3+dfsg-2) unstable; urgency=low
+
+  * Added a (very!) simple redirection allowing for API stability,
+    requiring "prawn/core" when only "prawn" is requested
+
+ -- Gunnar Wolf <gwolf at debian.org>  Fri, 27 Nov 2009 13:28:26 -0600
+
+libprawn-ruby (0.6.3+dfsg-1) unstable; urgency=low
+
+  [ Ryan Niebur ]
+  * fixed long description (Closes: #542457)
+
+  [ Gunnar Wolf ]
+  * Pointing debian/watch to githubredir instead of rubyforge, as new
+    upstream versions have not been noticed :-/
+  * New upstream release
+  * Switched to 3.0 (quilt) source format; documenting the origin of the
+    three orig.tar.gz files in README.source
+  * The (so far only) patch is documented following the DEP3 guidelines
+
+ -- Gunnar Wolf <gwolf at debian.org>  Tue, 24 Nov 2009 17:06:18 -0600
+
+libprawn-ruby (0.4.1+dfsg-2) unstable; urgency=low
+
+  * add build dep on ruby 1.9 (Closes: #543035)
+  * Add myself to Uploaders
+  * Debian Policy 3.8.3
+  * add README.source
+
+ -- Ryan Niebur <ryanryan52 at gmail.com>  Sun, 23 Aug 2009 11:25:23 -0700
+
+libprawn-ruby (0.4.1+dfsg-1) unstable; urgency=low
+
+  * Initial upload (Closes: #532796)
+
+ -- Gunnar Wolf <gwolf at debian.org>  Tue, 30 Jun 2009 17:35:16 -0500

Deleted: tags/libprawn-ruby/0.9.1+dfsg2-1/debian/control
===================================================================
--- trunk/libprawn-ruby/debian/control	2010-08-10 07:45:47 UTC (rev 5765)
+++ tags/libprawn-ruby/0.9.1+dfsg2-1/debian/control	2010-08-13 22:18:02 UTC (rev 5767)
@@ -1,69 +0,0 @@
-Source: libprawn-ruby
-Section: ruby
-Priority: optional
-Maintainer: Gunnar Wolf <gwolf at debian.org>
-Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>,
- Ryan Niebur <ryanryan52 at gmail.com>
-Build-Depends: ruby-pkg-tools (>= 0.17), cdbs, debhelper (>= 7), libsetup-ruby1.8
-Build-Depends-Indep: ruby1.8, rdoc, ruby1.9.1
-Standards-Version: 3.8.4
-Homepage: http://prawn.majesticseacreature.com/
-Vcs-Svn: svn://svn.debian.org/svn/pkg-ruby-extras/trunk/libprawn-ruby/
-Vcs-Browser: http://svn.debian.org/viewsvn/pkg-ruby-extras/trunk/libprawn-ruby/
-
-Package: libprawn-ruby1.8
-Architecture: all
-Depends: ${misc:Depends}, ruby1.8, libprawn-ruby-common
-Recommends: ttf-dejavu-core
-Description: Fast, nimble PDF generation library for Ruby
- Prawn is a PDF generation library for Ruby. Its highlights include:
-  * Built in support for UTF-8
-  * Easy image embedding
-  * Flexible table drawing
-  * Simple content positioning, allowing for placing elements relative to 
-    their sections 
-  * Easy text flowing within and around sections
-
-Package: libprawn-ruby1.9.1
-Architecture: all
-Depends: ${misc:Depends}, ruby1.9.1, libprawn-ruby-common
-Recommends: ttf-dejavu-core
-Description: Fast, nimble PDF generation library for Ruby
- Prawn is a PDF generation library for Ruby. Its highlights include:
-  * Built in support for UTF-8
-  * Easy image embedding
-  * Flexible table drawing
-  * Simple content positioning, allowing for placing elements relative to 
-    their sections 
-  * Easy text flowing within and around sections
-
-Package: libprawn-ruby
-Architecture: all
-Depends: ${misc:Depends}, libprawn-ruby1.8
-Description: Fast, nimble PDF generation library for Ruby
- Prawn is a PDF generation library for Ruby. Its highlights include:
-  * Built in support for UTF-8
-  * Easy image embedding
-  * Flexible table drawing
-  * Simple content positioning, allowing for placing elements relative to 
-    their sections 
-  * Easy text flowing within and around sections
- .
- This is a dummy package depending on the library for the current default
- version of Ruby.
-
-Package: libprawn-ruby-common
-Architecture: all
-Depends: ${misc:Depends}
-Suggests: ttf-dejavu-core, ttf-dustin, ttf-arphic-gkai00mp
-Description: Fast, nimble PDF generation library for Ruby
- Prawn is a PDF generation library for Ruby. Its highlights include:
-  * Built in support for UTF-8
-  * Easy image embedding
-  * Flexible table drawing
-  * Simple content positioning, allowing for placing elements relative to 
-    their sections 
-  * Easy text flowing within and around sections
- .
- This package contains common files used by both the Ruby 1.8 and the
- Ruby 1.9.1 versions of libprawn-ruby.

Copied: tags/libprawn-ruby/0.9.1+dfsg2-1/debian/control (from rev 5766, trunk/libprawn-ruby/debian/control)
===================================================================
--- tags/libprawn-ruby/0.9.1+dfsg2-1/debian/control	                        (rev 0)
+++ tags/libprawn-ruby/0.9.1+dfsg2-1/debian/control	2010-08-13 22:18:02 UTC (rev 5767)
@@ -0,0 +1,69 @@
+Source: libprawn-ruby
+Section: ruby
+Priority: optional
+Maintainer: Gunnar Wolf <gwolf at debian.org>
+Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>,
+ Ryan Niebur <ryanryan52 at gmail.com>
+Build-Depends: ruby-pkg-tools (>= 0.17), cdbs, debhelper (>= 7), libsetup-ruby1.8
+Build-Depends-Indep: ruby1.8, rdoc, ruby1.9.1
+Standards-Version: 3.9.1.0
+Homepage: http://prawn.majesticseacreature.com/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-ruby-extras/trunk/libprawn-ruby/
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-ruby-extras/trunk/libprawn-ruby/
+
+Package: libprawn-ruby1.8
+Architecture: all
+Depends: ${misc:Depends}, ruby1.8, libprawn-ruby-common
+Recommends: ttf-dejavu-core
+Description: Fast, nimble PDF generation library for Ruby
+ Prawn is a PDF generation library for Ruby. Its highlights include:
+  * Built in support for UTF-8
+  * Easy image embedding
+  * Flexible table drawing
+  * Simple content positioning, allowing for placing elements relative to 
+    their sections 
+  * Easy text flowing within and around sections
+
+Package: libprawn-ruby1.9.1
+Architecture: all
+Depends: ${misc:Depends}, ruby1.9.1, libprawn-ruby-common
+Recommends: ttf-dejavu-core
+Description: Fast, nimble PDF generation library for Ruby
+ Prawn is a PDF generation library for Ruby. Its highlights include:
+  * Built in support for UTF-8
+  * Easy image embedding
+  * Flexible table drawing
+  * Simple content positioning, allowing for placing elements relative to 
+    their sections 
+  * Easy text flowing within and around sections
+
+Package: libprawn-ruby
+Architecture: all
+Depends: ${misc:Depends}, libprawn-ruby1.8
+Description: Fast, nimble PDF generation library for Ruby
+ Prawn is a PDF generation library for Ruby. Its highlights include:
+  * Built in support for UTF-8
+  * Easy image embedding
+  * Flexible table drawing
+  * Simple content positioning, allowing for placing elements relative to 
+    their sections 
+  * Easy text flowing within and around sections
+ .
+ This is a dummy package depending on the library for the current default
+ version of Ruby.
+
+Package: libprawn-ruby-common
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: ttf-dejavu-core, ttf-dustin, ttf-arphic-gkai00mp
+Description: Fast, nimble PDF generation library for Ruby
+ Prawn is a PDF generation library for Ruby. Its highlights include:
+  * Built in support for UTF-8
+  * Easy image embedding
+  * Flexible table drawing
+  * Simple content positioning, allowing for placing elements relative to 
+    their sections 
+  * Easy text flowing within and around sections
+ .
+ This package contains common files used by both the Ruby 1.8 and the
+ Ruby 1.9.1 versions of libprawn-ruby.

Deleted: tags/libprawn-ruby/0.9.1+dfsg2-1/debian/rules
===================================================================
--- trunk/libprawn-ruby/debian/rules	2010-08-10 07:45:47 UTC (rev 5765)
+++ tags/libprawn-ruby/0.9.1+dfsg2-1/debian/rules	2010-08-13 22:18:02 UTC (rev 5767)
@@ -1,62 +0,0 @@
-#!/usr/bin/make -f
-
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
-
-DEB_RUBY_CONFIG_ARGS = --installdirs=std --datadir=/usr/share/libprawn-ruby/
-DEB_INSTALL_EXAMPLES_libprawn-ruby-common = examples/*
-DEB_INSTALL_DOCS_ALL = README debian/README.missing_images
-clean::
-	# Until we get clearance for upstream's images' copyrights, we
-	# will replace them with others that are redistributable. 
-	[ $$(md5sum data/images/barcode_issue.png | cut -f 1 -d ' ')      = d99fb09eb471c6bfa99b7d87dcb8292b ] || false
-	[ $$(md5sum data/images/dice.png | cut -f 1 -d ' ')               = 1f2831c87ff266dd0ebce7bd83051297 ] || false
-	[ $$(md5sum data/images/fractal.jpg | cut -f 1 -d ' ')            = 88cc7b1697fe238c62ae8d96a8a096d5 ] || false
-	[ $$(md5sum data/images/pigs.jpg | cut -f 1 -d ' ')               = b0cbf86feceea0ae3ee2d9567793a21f ] || false
-	[ $$(md5sum data/images/rails.png | cut -f 1 -d ' ')              = 4a11793ba4308f93643907d9f5dd2a78 ] || false
-	[ $$(md5sum data/images/ruport.png | cut -f 1 -d ' ')             = a97752e8cddd5a89f870bfb0437a4b19 ] || false
-	[ $$(md5sum data/images/ruport_transparent.png | cut -f 1 -d ' ') = 1a7a8ada7c931cb0c266a20dcfaf28b2 ] || false
-	[ $$(md5sum data/images/ruport_type0.png | cut -f 1 -d ' ')       = 5bf488feae3dc48374ecbed8f60d69f1 ] || false
-	[ $$(md5sum data/images/stef.jpg | cut -f 1 -d ' ')               = 3bbc20e6a17f0d0130184fc3da8111a3 ] || false
-	rm -f lib/ttfunk lib/ttfunk.rb lib/pdf 
-
-makebuilddir/libprawn-ruby::
-	if ! [ -d ttfunk/ -a -d pdfinspector/ ] ; then \
-		echo " *!*This package needs the 'ttfunk' and 'pdfinspector'"\
-		"tarballs in order to be built.\n" \
-		"*!*Please see the README.source file for further details."; \
-		exit 1; \
-	fi
-	[ -e lib/ttfunk    ] || ln -s ../ttfunk/lib/ttfunk lib/
-	[ -e lib/ttfunk.rb ] || ln -s ../ttfunk/lib/ttfunk.rb lib/
-	[ -e lib/pdf       ] || ln -s ../pdfinspector/lib/pdf lib/
-
-install/libprawn-ruby1.8::
-	# Files common to 1.8 and 1.9.1 versions are moved to libprawn-ruby-common
-	mkdir -p ./debian/libprawn-ruby-common/usr/share/doc/libprawn-ruby-common
-	mv ./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/ ./debian/libprawn-ruby-common/usr/share/
-	# Examples are provided by libprawn-ruby-common
-	mkdir -p ./debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/
-	ln -s ../libprawn-ruby-common/examples/ ./debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/examples
-
-install/libprawn-ruby1.9.1::
-	# The relevant files were moved to libprawn-ruby-common in
-	# install/libprawn-ruby1.8
-	rm -rf ./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/
-	# Examples are provided by libprawn-ruby-common
-	mkdir -p ./debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/
-	ln -s ../libprawn-ruby-common/examples/ ./debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/examples
-
-install/libprawn-ruby-common::
-	# Instead of copying fonts that are often found in Debian
-	# systems, recommend the relevant packages and symlink
-	# them. That way, lintian will be happier.
-	rm ./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/fonts/DejaVuSans.ttf
-	ln -s ../../fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
-		./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/fonts/DejaVuSans.ttf
-	rm ./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/fonts/Dustismo_Roman.ttf
-	ln -s ../../fonts/truetype/dustin/Dustismo_Roman.ttf \
-		./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/fonts/Dustismo_Roman.ttf
-	rm ./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/fonts/gkai00mp.ttf
-	ln -s ../../fonts/truetype/arphic/gkai00mp.ttf \
-		./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/fonts/gkai00mp.ttf

Copied: tags/libprawn-ruby/0.9.1+dfsg2-1/debian/rules (from rev 5766, trunk/libprawn-ruby/debian/rules)
===================================================================
--- tags/libprawn-ruby/0.9.1+dfsg2-1/debian/rules	                        (rev 0)
+++ tags/libprawn-ruby/0.9.1+dfsg2-1/debian/rules	2010-08-13 22:18:02 UTC (rev 5767)
@@ -0,0 +1,57 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
+
+DEB_RUBY_CONFIG_ARGS = --installdirs=std --datadir=/usr/share/libprawn-ruby/
+DEB_INSTALL_EXAMPLES_libprawn-ruby-common = examples/*
+DEB_INSTALL_DOCS_ALL = README debian/README.missing_images
+clean::
+	# Until we get clearance for upstream's images' copyrights, we
+	# will replace them with others that are redistributable. 
+	[ $$(md5sum data/images/barcode_issue.png | cut -f 1 -d ' ')      = d99fb09eb471c6bfa99b7d87dcb8292b ] || false
+	[ $$(md5sum data/images/dice.png | cut -f 1 -d ' ')               = 1f2831c87ff266dd0ebce7bd83051297 ] || false
+	[ $$(md5sum data/images/fractal.jpg | cut -f 1 -d ' ')            = 88cc7b1697fe238c62ae8d96a8a096d5 ] || false
+	[ $$(md5sum data/images/pigs.jpg | cut -f 1 -d ' ')               = b0cbf86feceea0ae3ee2d9567793a21f ] || false
+	[ $$(md5sum data/images/rails.png | cut -f 1 -d ' ')              = 4a11793ba4308f93643907d9f5dd2a78 ] || false
+	[ $$(md5sum data/images/ruport.png | cut -f 1 -d ' ')             = a97752e8cddd5a89f870bfb0437a4b19 ] || false
+	[ $$(md5sum data/images/ruport_transparent.png | cut -f 1 -d ' ') = 1a7a8ada7c931cb0c266a20dcfaf28b2 ] || false
+	[ $$(md5sum data/images/ruport_type0.png | cut -f 1 -d ' ')       = 5bf488feae3dc48374ecbed8f60d69f1 ] || false
+	[ $$(md5sum data/images/stef.jpg | cut -f 1 -d ' ')               = 3bbc20e6a17f0d0130184fc3da8111a3 ] || false
+	rm -f lib/ttfunk lib/ttfunk.rb lib/pdf 
+
+makebuilddir/libprawn-ruby::
+	if ! [ -d ttfunk/ -a -d pdfinspector/ ] ; then \
+		echo " *!*This package needs the 'ttfunk' and 'pdfinspector'"\
+		"tarballs in order to be built.\n" \
+		"*!*Please see the README.source file for further details."; \
+		exit 1; \
+	fi
+	[ -e lib/ttfunk    ] || ln -s ../ttfunk/lib/ttfunk lib/
+	[ -e lib/ttfunk.rb ] || ln -s ../ttfunk/lib/ttfunk.rb lib/
+	[ -e lib/pdf       ] || ln -s ../pdfinspector/lib/pdf lib/
+
+install/libprawn-ruby1.8::
+	# Files common to 1.8 and 1.9.1 versions are moved to libprawn-ruby-common
+	mkdir -p ./debian/libprawn-ruby-common/usr/share/doc/libprawn-ruby-common
+	mv ./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/ ./debian/libprawn-ruby-common/usr/share/
+	# Examples are provided by libprawn-ruby-common
+	mkdir -p ./debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/
+	ln -s ../libprawn-ruby-common/examples/ ./debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/examples
+
+install/libprawn-ruby1.9.1::
+	# The relevant files were moved to libprawn-ruby-common in
+	# install/libprawn-ruby1.8
+	rm -rf ./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/
+	# Examples are provided by libprawn-ruby-common
+	mkdir -p ./debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/
+	ln -s ../libprawn-ruby-common/examples/ ./debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/examples
+
+install/libprawn-ruby-common::
+	# Symlink well-known fonts to their expected location
+	ln -s ../../fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
+		./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/fonts/DejaVuSans.ttf
+	ln -s ../../fonts/truetype/dustin/Dustismo_Roman.ttf \
+		./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/fonts/Dustismo_Roman.ttf
+	ln -s ../../fonts/truetype/arphic/gkai00mp.ttf \
+		./debian/$(cdbs_curpkg)/usr/share/libprawn-ruby/fonts/gkai00mp.ttf




More information about the Pkg-ruby-extras-commits mailing list