diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2011-05-03 19:35:58 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2011-05-03 19:35:58 +0000 |
commit | 6bc4de76ddb7621c1a74aa9f78bfa93295f4b068 (patch) | |
tree | d695ca89d9e357dbf1f5b084d859ea061bf2db8b /app-text/pandoc/pandoc-1.8.1.1-r1.ebuild | |
parent | Use PN instead of hard-coded "opera" where needed in preparation for www-clie... (diff) | |
download | gentoo-2-6bc4de76ddb7621c1a74aa9f78bfa93295f4b068.tar.gz gentoo-2-6bc4de76ddb7621c1a74aa9f78bfa93295f4b068.tar.bz2 gentoo-2-6bc4de76ddb7621c1a74aa9f78bfa93295f4b068.zip |
USE flags work this time (passed to configure phase).
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'app-text/pandoc/pandoc-1.8.1.1-r1.ebuild')
-rw-r--r-- | app-text/pandoc/pandoc-1.8.1.1-r1.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/app-text/pandoc/pandoc-1.8.1.1-r1.ebuild b/app-text/pandoc/pandoc-1.8.1.1-r1.ebuild new file mode 100644 index 000000000000..b6fdd1548538 --- /dev/null +++ b/app-text/pandoc/pandoc-1.8.1.1-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/pandoc/pandoc-1.8.1.1-r1.ebuild,v 1.1 2011/05/03 19:35:58 slyfox Exp $ + +# ebuild generated by hackport 0.2.11 + +EAPI="3" + +CABAL_FEATURES="bin lib profile haddock hscolour" +inherit haskell-cabal + +DESCRIPTION="Conversion between markup formats" +HOMEPAGE="http://johnmacfarlane.net/pandoc" +SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="highlight pdf" +RESTRICT="test" # needs quickcheck-2.4 in tree + +RDEPEND=">=dev-haskell/citeproc-hs-0.3.1 + =dev-haskell/dlist-0.5* + =dev-haskell/http-4000.1* + =dev-haskell/json-0.4* + <dev-haskell/mtl-2.1 + =dev-haskell/network-2.3* + =dev-haskell/pandoc-types-1.8* + >=dev-haskell/parsec-2.1 + =dev-haskell/tagsoup-0.12* + =dev-haskell/texmath-0.5* + =dev-haskell/utf8-string-0.3* + =dev-haskell/xhtml-3000.2* + >=dev-haskell/xml-1.3.5 + >=dev-haskell/zip-archive-0.1.1.7 + >=dev-lang/ghc-6.10.1 + highlight? ( =dev-haskell/highlighting-kate-0.2.9* ) + pdf? ( virtual/latex-base ) + " + +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6" + +pandoc_init() { + pandoc="${PN}" + pdfscript="markdown2pdf" +} + +installMan() { + local prog=$1 + doman "${S}/man/man1/${prog}.1" +} + +src_configure() { + cabal_src_configure \ + $(cabal_flag highlight highlighting) +} + +src_install() { + pandoc_init + cabal_src_install + + installMan "${pandoc}" + use pdf && installMan "${pdfscript}" + + # COPYING is installed by the Cabal eclass + dodoc README COPYRIGHT changelog +} |