summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Francisco Araujo <araujo@gentoo.org>2006-11-03 20:52:41 +0000
committerLuis Francisco Araujo <araujo@gentoo.org>2006-11-03 20:52:41 +0000
commit90b6b7a47303bd182070b70e180241dc956991cd (patch)
tree96578305e71791e8fa526fe94a4a29d3c631cdc1 /dev-haskell/hsshellscript
parentstabled x86, bug #153075 (diff)
downloadgentoo-2-90b6b7a47303bd182070b70e180241dc956991cd.tar.gz
gentoo-2-90b6b7a47303bd182070b70e180241dc956991cd.tar.bz2
gentoo-2-90b6b7a47303bd182070b70e180241dc956991cd.zip
Adding new hsshellscript version.
(Portage version: 2.1.2_rc1-r3)
Diffstat (limited to 'dev-haskell/hsshellscript')
-rw-r--r--dev-haskell/hsshellscript/ChangeLog8
-rw-r--r--dev-haskell/hsshellscript/files/digest-hsshellscript-2.7.03
-rw-r--r--dev-haskell/hsshellscript/hsshellscript-2.7.0.ebuild57
3 files changed, 67 insertions, 1 deletions
diff --git a/dev-haskell/hsshellscript/ChangeLog b/dev-haskell/hsshellscript/ChangeLog
index 6ff06cc75df1..8ca4d57a2d6b 100644
--- a/dev-haskell/hsshellscript/ChangeLog
+++ b/dev-haskell/hsshellscript/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-haskell/hsshellscript
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hsshellscript/ChangeLog,v 1.14 2006/08/15 00:32:33 araujo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hsshellscript/ChangeLog,v 1.15 2006/11/03 20:52:41 araujo Exp $
+
+*hsshellscript-2.7.0 (03 Nov 2006)
+
+ 03 Nov 2006; Luis F. Araujo <araujo@gentoo.org>
+ +hsshellscript-2.7.0.ebuild:
+ Added new hsshellscript version.
15 Aug 2006; Luis F. Araujo <araujo@gentoo.org>
hsshellscript-2.6.0.ebuild:
diff --git a/dev-haskell/hsshellscript/files/digest-hsshellscript-2.7.0 b/dev-haskell/hsshellscript/files/digest-hsshellscript-2.7.0
new file mode 100644
index 000000000000..54e76d450389
--- /dev/null
+++ b/dev-haskell/hsshellscript/files/digest-hsshellscript-2.7.0
@@ -0,0 +1,3 @@
+MD5 81c16067471afbd21660863754853e3c hsshellscript-2.7.0.tar.gz 162155
+RMD160 b797ff3276c0aa62b4d71776cef1e33767de201c hsshellscript-2.7.0.tar.gz 162155
+SHA256 58141b99cb74ff3563a68727e66b9e2bb4427fcdb5ee6acaeafe9e7bf5669537 hsshellscript-2.7.0.tar.gz 162155
diff --git a/dev-haskell/hsshellscript/hsshellscript-2.7.0.ebuild b/dev-haskell/hsshellscript/hsshellscript-2.7.0.ebuild
new file mode 100644
index 000000000000..932f3adbe056
--- /dev/null
+++ b/dev-haskell/hsshellscript/hsshellscript-2.7.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hsshellscript/hsshellscript-2.7.0.ebuild,v 1.1 2006/11/03 20:52:41 araujo Exp $
+
+inherit base eutils multilib ghc-package
+
+DESCRIPTION="A Haskell library for UNIX shell scripting tasks"
+HOMEPAGE="http://www.volker-wysk.de/hsshellscript/"
+SRC_URI="http://www.volker-wysk.de/hsshellscript/dist/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~ppc ~x86 ~amd64"
+IUSE="doc"
+
+DEPEND=">=virtual/ghc-6.4
+ >=dev-libs/glib-2.0
+ doc? ( >=dev-haskell/haddock-0.6 )"
+RDEPEND=""
+
+pkg_setup() {
+ HSLIB="/usr/$(get_libdir)/${P}/ghc-$(ghc-version)/"
+}
+
+src_unpack() {
+ base_src_unpack
+ # Don't register the package
+ sed -i "/ghc-pkg/d" "${S}/Makefile"
+ # Fix hsshellscript.pkg library path
+ sed -i "s:@DEST_LIB:${HSLIB}:" "${S}/lib/hsshellscript.pkg"
+ sed -i "s:@DEST_IMPORTS:${HSLIB}/imports:" "${S}/lib/hsshellscript.pkg"
+}
+
+src_compile() {
+ make lib lib_p build/hsshellscript.pkg || die "emake failed"
+}
+
+src_test() {
+ make tests
+}
+
+src_install() {
+ ghc-setup-pkg "${S}/build/hsshellscript.pkg"
+ make install \
+ DESTDIR="${D}" \
+ DEST_LIB="${HSLIB}" \
+ DEST_IMPORTS="${HSLIB}/imports" install_lib \
+ || die "make failed"
+
+ if use doc; then
+ make DEST_DOC="${D}/usr/share/doc/${PF}" install_doc
+ fi
+
+ ghc-makeghcilib "${D}/${HSLIB}/libhsshellscript.a"
+ ghc-install-pkg
+ fperms 0644 "${HSLIB}/imports/hsshellscript.h"
+}