summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-tex/rail')
-rw-r--r--dev-tex/rail/Manifest1
-rw-r--r--dev-tex/rail/metadata.xml8
-rw-r--r--dev-tex/rail/rail-1.2_p1.ebuild37
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-tex/rail/Manifest b/dev-tex/rail/Manifest
new file mode 100644
index 00000000000..d25efe0fc7e
--- /dev/null
+++ b/dev-tex/rail/Manifest
@@ -0,0 +1 @@
+DIST rail-1.2_p1.zip 107773 SHA256 960238a6c344f044b3f1ab441f6cfbc9ad9aaffe407d44bd15627ef40ce6725c SHA512 8d0178b7beb0f212eb34487b6a285f41d10e776d4294c945e2cc1c163bde44b4d6a38afca952ed0fb9759962f565002d3591f4e098d78d60eb03ae30469483c8 WHIRLPOOL 93b07fea285aab3aed9172a06794e9706dd0606db24337d5d0dfcb1efabb4816d1f44720852268850214cdaafb8161ec625bb61483d69fa0e17d0175f7216a15
diff --git a/dev-tex/rail/metadata.xml b/dev-tex/rail/metadata.xml
new file mode 100644
index 00000000000..73ea9d016da
--- /dev/null
+++ b/dev-tex/rail/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<longdescription lang='en'>
+A C program and LaTeX package to draw syntax diagrams specified in EBNF.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-tex/rail/rail-1.2_p1.ebuild b/dev-tex/rail/rail-1.2_p1.ebuild
new file mode 100644
index 00000000000..43ba894387d
--- /dev/null
+++ b/dev-tex/rail/rail-1.2_p1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit latex-package
+
+DESCRIPTION="Offers syntax/railroad diagrams"
+HOMEPAGE="http://www.ctan.org/tex-archive/support/rail/"
+SRC_URI="http://mirror.ctan.org/support/${PN}.zip
+ -> ${P}.zip"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+RDEPEND="app-text/texlive"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ sys-devel/bison
+ sys-devel/flex"
+
+S=${WORKDIR}/${PN}
+
+src_compile() {
+ emake -j 1 || die "make failed"
+}
+
+src_install() {
+ latex-package_src_doinstall sty doc
+
+ dobin rail || die "Installing the rail tool failed"
+
+ newman rail.man rail.1 || die "Installing the manpage failed"
+}