From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8102E1384B4 for ; Sat, 21 Nov 2015 07:22:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4E60E07B3; Sat, 21 Nov 2015 07:22:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3B056E07B3 for ; Sat, 21 Nov 2015 07:22:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D68D1340A22 for ; Sat, 21 Nov 2015 07:22:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9396BA39 for ; Sat, 21 Nov 2015 07:22:37 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1448090948.2275d15bc2b99d7c6ebef2f5b32b482ced16283d.blueness@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-misc/htdig/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-misc/htdig/htdig-3.2.0_beta6-r4.ebuild X-VCS-Directories: www-misc/htdig/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 2275d15bc2b99d7c6ebef2f5b32b482ced16283d X-VCS-Branch: master Date: Sat, 21 Nov 2015 07:22:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 277a5f93-3b7f-4ce8-9f26-1461ceae2f37 X-Archives-Hash: ec97c10484f553ac7ee86517905928ae commit: 2275d15bc2b99d7c6ebef2f5b32b482ced16283d Author: Anthony G. Basile gentoo org> AuthorDate: Sat Nov 21 07:29:08 2015 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Sat Nov 21 07:29:08 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2275d15b www-misc/htdig: bump to EAPI=5, add libressl support Package-Manager: portage-2.2.20.1 www-misc/htdig/htdig-3.2.0_beta6-r4.ebuild | 62 ++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/www-misc/htdig/htdig-3.2.0_beta6-r4.ebuild b/www-misc/htdig/htdig-3.2.0_beta6-r4.ebuild new file mode 100644 index 0000000..2b481fb --- /dev/null +++ b/www-misc/htdig/htdig-3.2.0_beta6-r4.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils autotools + +MY_PV=${PV/_beta/b} +S=${WORKDIR}/${PN}-${MY_PV} + +DESCRIPTION="HTTP/HTML indexing and searching system" +HOMEPAGE="http://www.htdig.org" +SRC_URI="http://www.htdig.org/files/${PN}-${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux" +IUSE="libressl ssl" + +DEPEND=">=sys-libs/zlib-1.1.3 + app-arch/unzip + ssl? ( + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc4.patch + epatch "${FILESDIR}"/${P}-as-needed.patch + epatch "${FILESDIR}"/${P}-quoting.patch + sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in db/configure.in || die + eautoreconf +} + +src_configure() { + econf \ + --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/htdocs/${PN} \ + --with-image-dir="${EPREFIX}"/var/www/localhost/htdocs/${PN} \ + $(use_with ssl) + +# --with-image-url-prefix="file://${EPREFIX}/var/www/localhost/htdocs/${PN}" \ +} + +src_install () { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc ChangeLog README + dohtml -r htdoc + + sed -i "s:${D}::g" \ + "${ED}"/etc/${PN}/${PN}.conf \ + "${ED}"/usr/bin/rundig \ + || die "sed failed (removing \${D} from installed files)" + + # symlink htsearch so it can be easily found. see bug #62087 + dosym ../../var/www/localhost/cgi-bin/htsearch /usr/bin/htsearch +}