diff options
Diffstat (limited to 'app-text/NaturalDocs/NaturalDocs-1.52-r2.ebuild')
-rw-r--r-- | app-text/NaturalDocs/NaturalDocs-1.52-r2.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-text/NaturalDocs/NaturalDocs-1.52-r2.ebuild b/app-text/NaturalDocs/NaturalDocs-1.52-r2.ebuild new file mode 100644 index 000000000000..3c51d42cd125 --- /dev/null +++ b/app-text/NaturalDocs/NaturalDocs-1.52-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit perl-module + +DESCRIPTION="Extensible, multi-language source code documentation generator" +HOMEPAGE="http://www.naturaldocs.org/" +SRC_URI="mirror://sourceforge/naturaldocs/${P}.zip" +S="${WORKDIR}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86" + +BDEPEND="app-arch/unzip" + +src_install() { + insinto /usr/share/${PN} + doins -r Styles Info JavaScript + + insinto /etc/${PN} + doins -r Config/. + dosym ../../../etc/${PN} /usr/share/${PN}/Config + + perl_set_version + insinto ${VENDOR_LIB} + doins -r Modules/NaturalDocs + dodir /usr/share/${PN}/Modules + dosym ../../../..${VENDOR_LIB}/NaturalDocs /usr/share/${PN}/Modules/NaturalDocs + + exeinto /usr/share/${PN} + doexe ${PN} + + # Symlink the Perl script into /usr/bin + dodir /usr/bin + dosym ../share/${PN}/${PN} /usr/bin/${PN} + + # Documentation + dodoc -r Help/. + dosym ../doc/${PF}/html /usr/share/${PN}/Help +} + +pkg_preinst() { + if [[ -e /usr/share/${PN}/Config && ! -L /usr/share/${PN}/Config ]] ; then + mkdir -p /etc/${PN} + mv /usr/share/${PN}/Config/* /etc/${PN}/ + rm -rf /usr/share/${PN}/Config + fi +} |