[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Packaging non-library Haskell



Somebody signing messages as Joachim Breitner wrote:
Am Donnerstag, den 19.04.2012, 11:14 -0500 schrieb Stephen Paul Weber:
The test can be abstracted, but not the flag, as that is (unfortunately)
package-specific.

Yeah, I thought as much.  How useful would abstracting the test be?

Finally, a line to install an extra documentation file.  Since the *.cabal
does not know that this file is documentation, and it does not have a name
that immidiately identifies it as documentation (like README), I think
something custom is going to be required for that case no matter what.

I think these two cases can go (or rather, stay) in
debian/hlint.install, while the rest looks like it can go into
hlibrary.mk.

Oh, I see I was working with apt-get source hlint instead of what's in darcs. Oops. Yes, that makes sense. For clarity, I have attached a patch against the darcs version of the debian metadata that does this.

And forget what I said about the library files, that must be a bug in the version I got from apt-get source :)

--
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
diff -rN -u old-hlint/hlint.install new-hlint/hlint.install
--- old-hlint/hlint.install	2012-04-19 17:43:38.639929626 -0500
+++ new-hlint/hlint.install	2012-04-19 17:43:38.651929659 -0500
@@ -1,7 +1,2 @@
-dist-ghc/build/hlint/hlint /usr/bin
 data/hs-lint.el /usr/share/emacs/site-lisp
 hlint.htm /usr/share/doc/hlint
-data/*.hs /usr/share/hlint
-data/report_template.html /usr/share/hlint
-data/hlint.ghci /usr/share/hlint
-
diff -rN -u old-hlint/rules new-hlint/rules
--- old-hlint/rules	2012-04-19 17:43:38.643929643 -0500
+++ new-hlint/rules	2012-04-19 17:43:38.651929659 -0500
@@ -6,9 +6,12 @@
 include /usr/share/cdbs/1/class/hlibrary.mk
 
 # If no threaded RTS is found, disable it
-DEB_SETUP_GHC_CONFIGURE_ARGS := $(shell test -e /usr/lib/ghc-$(GHC_VERSION)/libHSrts_thr.a || echo --flags=-threaded) --datasubdir=/usr/share/hlint
+DEB_SETUP_GHC_CONFIGURE_ARGS := $(shell test -e /usr/lib/ghc-$(GHC_VERSION)/libHSrts_thr.a || echo --flags=-threaded)
 
 build/$(CABAL_PACKAGE) :: build-ghc-stamp
 
-install/$(CABAL_PACKAGE) :: build/$(CABAL_PACKAGE)
-
+install/$(CABAL_PACKAGE) :: debian/tmp-inst-ghc
+	cd debian/tmp-inst-ghc ; find usr/bin/ \
+		-exec install -Dm 755 '{}' ../$(notdir $@)/'{}' ';'
+	cd debian/tmp-inst-ghc ; find usr/share/$(notdir $@)* \
+		-exec install -Dm 644 '{}' ../$(notdir $@)/'{}' ';'

Attachment: signature.asc
Description: Digital signature


Reply to: