diff options
author | Chris <xchrisx@uber.space> | 2020-01-30 14:10:25 +0100 |
---|---|---|
committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2020-02-02 13:02:50 +0000 |
commit | 22a80447bfeeeb1b5179a24d356551e0a2f1bc34 (patch) | |
tree | 757f15222308b12c0cf5df07841cf2a4fac60f24 | |
parent | f887012de988ed00d77c32c71e14e57375a635d0 (diff) | |
download | tde-packaging-gentoo-22a80447bfeeeb1b5179a24d356551e0a2f1bc34.tar.gz tde-packaging-gentoo-22a80447bfeeeb1b5179a24d356551e0a2f1bc34.zip |
Live ebuilds: Add hldig (htdig fork) ebuild.
Lays groundwork for later KHelpCenter support.
Signed-off-by: Chris <xchrisx@uber.space>
-rw-r--r-- | www-misc/hldig/Manifest | 1 | ||||
-rw-r--r-- | www-misc/hldig/hldig-1.0.2.ebuild | 66 | ||||
-rw-r--r-- | www-misc/hldig/metadata.xml | 7 |
3 files changed, 74 insertions, 0 deletions
diff --git a/www-misc/hldig/Manifest b/www-misc/hldig/Manifest new file mode 100644 index 00000000..7d315aa0 --- /dev/null +++ b/www-misc/hldig/Manifest @@ -0,0 +1 @@ +DIST v1.0.2.tar.gz 3913213 BLAKE2B def6fe7b05391f3956f1930326e0543801014ae70dadf2668ab8dc53ebb77423d292d485862afa54655cc29e0ea7dcb719b2a25681bced796f01d700fc5f63fc SHA512 e89b35a494cef356d30c8775aa0a58ca86d2e9d87b229a9c6eba3141fcbf3081d5a17ae7c367096e9e40e35db29c7a6eb52c04f90c2ffc2042a60663c1916d0a diff --git a/www-misc/hldig/hldig-1.0.2.ebuild b/www-misc/hldig/hldig-1.0.2.ebuild new file mode 100644 index 00000000..c4bdb70c --- /dev/null +++ b/www-misc/hldig/hldig-1.0.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2019 Gentoo Authors +# Copyright 2020 The Trinity Desktop Project +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="HTTP/HTML indexing and searching system" +HOMEPAGE="https://github.com/solbu/hldig" +SRC_URI="http://github.com/solbu/${PN}/archive/v${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm arm64 ppc ppc64 x86" +IUSE="libressl ssl" + +DEPEND=" + !www-misc/htdig + sys-libs/zlib + app-arch/unzip + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-${PV}" + +HTML_DOCS=( docs/. ) + +src_prepare() { + default + sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac db/configure.ac || die + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-static + --with-config-dir="${EPREFIX}"/etc/${PN} + --with-default-config-file="${EPREFIX}"/etc/${PN}/${PN}.conf + --with-database-dir="${EPREFIX}"/var/lib/${PN}/db + --with-cgi-bin-dir="${EPREFIX}"/var/www/localhost/cgi-bin + --with-search-dir="${EPREFIX}"/var/www/localhost/hldocs/${PN} + --with-image-dir="${EPREFIX}"/var/www/localhost/hldocs/${PN} + $(use_with ssl) + ) + econf "${myeconfargs[@]}" +} + +src_install () { + default + sed -i "s:${D}::g" \ + "${ED}"/etc/${PN}/${PN}.conf \ + "${ED}"/usr/bin/rundig \ + || die "sed failed (removing \${D} from installed files)" + + keepdir "${EPREFIX}"/var/lib/${PN}/db + + # Symlink hlsearch so it can be easily found. + dosym ../../var/www/localhost/cgi-bin/hlsearch /usr/bin/hlsearch + + # No static archives + find "${D}" -name '*.la' -delete || die +} diff --git a/www-misc/hldig/metadata.xml b/www-misc/hldig/metadata.xml new file mode 100644 index 00000000..61b4108b --- /dev/null +++ b/www-misc/hldig/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Chris</name> + </maintainer> +</pkgmetadata> |