summaryrefslogtreecommitdiff
path: root/dev-lua/luadoc
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lua/luadoc')
-rw-r--r--dev-lua/luadoc/Manifest3
-rw-r--r--dev-lua/luadoc/luadoc-3.0.1.ebuild37
-rw-r--r--dev-lua/luadoc/metadata.xml13
3 files changed, 53 insertions, 0 deletions
diff --git a/dev-lua/luadoc/Manifest b/dev-lua/luadoc/Manifest
new file mode 100644
index 000000000000..318fd2e2c44d
--- /dev/null
+++ b/dev-lua/luadoc/Manifest
@@ -0,0 +1,3 @@
+DIST luadoc-3.0.1.tar.gz 108824 BLAKE2B 52092feeb22cdcd7570ba5d54c57598d16688daba7c90d81dc975cfd2545c5e42e6f4b8f1bdc150c877f6b953cbb193d03d1a02f0ac48cfbc5cf1ec4a91b101c SHA512 413b40e72cc0699c00caf47fe3d7233c8619bfd6064eac001762bcb2ae0b21ccc6f800bd05566cd83924546e5616d1e5840d8bc20ec6d1f1c7a64910a9df6be2
+EBUILD luadoc-3.0.1.ebuild 773 BLAKE2B 5f2fc8303da461f90efa530936bf840de65439db22b88aee009c59e077af3700d2fff2c852bba0e9d2b171288baf7f69250717e126f05ea1d65192f22547d696 SHA512 f15db8a56c44a314f09ceadf54ded72f4356ab957193637c892c7f6d6c745399dc9e58354b0f83fe9a62a5ab863d48b1485e6ec58a4a8a2ffd766590a359e1c9
+MISC metadata.xml 527 BLAKE2B 90513513f29682f379946aea92ca66566f9d2000976da5c82b1f273d2af29fe34699b3fea4221b863a515bba0d7a51a4136cd643d268cdec4c62d664ef3f32b9 SHA512 4a3bf73e5b7e7bba048f0f8b251369c9d6e10c885817fd5a8293466df75bee548be3b34e55a5e448be2681ce5cfe1182850d1382f67104feea9886c30f88ad41
diff --git a/dev-lua/luadoc/luadoc-3.0.1.ebuild b/dev-lua/luadoc/luadoc-3.0.1.ebuild
new file mode 100644
index 000000000000..93cd498bdc02
--- /dev/null
+++ b/dev-lua/luadoc/luadoc-3.0.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=0
+
+inherit multilib
+DESCRIPTION="LuaDoc is a documentation tool for Lua source code"
+HOMEPAGE="http://luadoc.luaforge.net/"
+SRC_URI="http://luaforge.net/frs/download.php/3185/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 arm ppc ppc64 x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=dev-lang/lua-5.1.3
+ dev-lua/luafilesystem"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e "s|/usr/local|\$(DESTDIR)/usr|" \
+ -e "s|lib|$(get_libdir)|" \
+ -e "s|lua5.1|lua|" \
+ config || die
+
+ # lua-5.1.3
+ find . -name '*.lua' | xargs sed -i -e "s/gfind/gmatch/g" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc README
+ dohtml -r doc/us/*
+}
diff --git a/dev-lua/luadoc/metadata.xml b/dev-lua/luadoc/metadata.xml
new file mode 100644
index 000000000000..fe12f6f53b37
--- /dev/null
+++ b/dev-lua/luadoc/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>rafaelmartins@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ LuaDoc is a documentation generator tool for Lua source code.
+ It parses the declarations and documentation comments in a set of Lua
+ source files and produces a set of XHTML pages describing the commented
+ declarations and functions.
+ </longdescription>
+</pkgmetadata>