Skip to content

Commit

Permalink
app-portage/hackport: new package
Browse files Browse the repository at this point in the history
An ebuild generator from hackage index or even .cabal files

Package-Manager: Portage-2.3.3, Repoman-2.3.1
  • Loading branch information
Sergei Trofimovich committed Jan 16, 2017
1 parent 6e904b1 commit 90e67db
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-portage/hackport/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST hackport-0.5.1.tar.gz 1390428 SHA256 667af1dc76c2833dd1fec935c5e61cc331be3c7b20c77ff68206177f70eccdad SHA512 006e4457a9ebba9acff35787a73a321b903db2f6ff54423cd66e91a93390183d0ca2690e2d0c8b5c1256116c9f81cabeac45c6dcb21e537849afbb1109bd80af WHIRLPOOL afd0156c687193f658ff82a08e4b1f1dfc719f91ddac16541bde8b916e669d74475552d3552ad338c5a3f7272c8492d8bd7f1ef69abc65652372ea26c0834ae3
55 changes: 55 additions & 0 deletions app-portage/hackport/hackport-0.5.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

# ebuild generated by hackport 0.5.1.9999

CABAL_FEATURES="test-suite"
inherit haskell-cabal

DESCRIPTION="Hackage and Portage integration tool"
HOMEPAGE="http://hackage.haskell.org/package/hackport"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RESTRICT=test # tests are broken: need path to ebuild tree

RDEPEND="dev-haskell/async:=
dev-haskell/base16-bytestring:=
dev-haskell/base64-bytestring:=
dev-haskell/cryptohash:=
dev-haskell/ed25519:=
dev-haskell/extensible-exceptions:=
dev-haskell/hashable:=
>=dev-haskell/http-4000.0.3:=
dev-haskell/missingh:=
dev-haskell/mtl:=
>=dev-haskell/network-2.6:=
>=dev-haskell/network-uri-2.6:=
dev-haskell/old-locale:=
dev-haskell/old-time:=
dev-haskell/parsec:=
dev-haskell/random:=
dev-haskell/regex-compat:=
dev-haskell/split:=
dev-haskell/stm:=
>=dev-haskell/tar-0.5:=
>=dev-haskell/xml-1.3.7:=
dev-haskell/zlib:=
>=dev-lang/ghc-7.8.2:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.18.1.3
test? ( dev-haskell/hunit )
"

src_install() {
haskell-cabal_src_install
doman man/hackport.1
}
61 changes: 61 additions & 0 deletions app-portage/hackport/hackport-9999.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

# ebuild generated by hackport 0.5.1.9999

CABAL_FEATURES="test-suite"
EGIT_REPO_URI="https://github.com/gentoo-haskell/hackport.git"

inherit git-r3 haskell-cabal

DESCRIPTION="Hackage and Portage integration tool"
HOMEPAGE="https://github.com/gentoo-haskell/hackport"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""

RESTRICT=test # tests are broken: need path to ebuild tree

RDEPEND="dev-haskell/async:=
dev-haskell/base16-bytestring:=
dev-haskell/base64-bytestring:=
dev-haskell/cryptohash:=
dev-haskell/ed25519:=
dev-haskell/extensible-exceptions:=
dev-haskell/hashable:=
>=dev-haskell/http-4000.0.3:=
dev-haskell/missingh:=
dev-haskell/mtl:=
>=dev-haskell/network-2.6:=
>=dev-haskell/network-uri-2.6:=
dev-haskell/old-locale:=
dev-haskell/old-time:=
dev-haskell/parsec:=
dev-haskell/random:=
dev-haskell/regex-compat:=
dev-haskell/split:=
dev-haskell/stm:=
>=dev-haskell/tar-0.5:=
>=dev-haskell/xml-1.3.7:=
dev-haskell/zlib:=
>=dev-lang/ghc-7.8.2:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.18.1.3
test? ( dev-haskell/hunit )
"

src_prepare() {
default
sed -e 's/^Version:.*/&.9999/' -i ${PN}.cabal || die # just to distinct from release install
}

src_install() {
haskell-cabal_src_install
doman man/hackport.1
}
12 changes: 12 additions & 0 deletions app-portage/hackport/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo Haskell</name>
</maintainer>
<longdescription>
A command line tool to manage an overlay of Gentoo ebuilds
that are generated from a hackage repo of Cabal packages.
</longdescription>
</pkgmetadata>

0 comments on commit 90e67db

Please sign in to comment.