mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41919 Signed-off-by: Sam James <sam@gentoo.org>
73 lines
1.6 KiB
Bash
73 lines
1.6 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="C/C++ toolkit for Z39.50v3 clients and servers"
|
|
HOMEPAGE="https://www.indexdata.com/resources/software/yaz/"
|
|
|
|
if [[ ${PV} == *9999 ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/indexdata/yaz.git"
|
|
else
|
|
SRC_URI="https://ftp.indexdata.com/pub/${PN}/${P}.tar.gz"
|
|
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ppc ppc64 ~s390 ~sparc x86"
|
|
fi
|
|
|
|
LICENSE="BSD GPL-2"
|
|
SLOT="0/5"
|
|
IUSE="gnutls tcpd ziffy"
|
|
|
|
RDEPEND="
|
|
dev-libs/icu:=
|
|
dev-libs/libxml2:=
|
|
dev-libs/libxslt
|
|
sys-libs/readline:=
|
|
sys-libs/ncurses:=
|
|
virtual/libintl
|
|
!gnutls? ( dev-libs/openssl:0= )
|
|
gnutls? ( net-libs/gnutls:= )
|
|
tcpd? ( sys-apps/tcp-wrappers )
|
|
ziffy? ( net-libs/libpcap )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
dev-lang/tcl:0
|
|
app-alternatives/yacc
|
|
>=dev-build/libtool-2
|
|
virtual/pkgconfig
|
|
"
|
|
DOCS=( NEWS README.md )
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# Hardcoded assumption of libraries residing in lib/, bug #730016
|
|
sed -i -e "s|/lib\"|/$(get_libdir)\"|" configure.ac || die
|
|
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf \
|
|
$(use_with gnutls) \
|
|
$(use_enable tcpd tcpd /usr)
|
|
}
|
|
|
|
src_install() {
|
|
# make install is a mess, we need to clean it
|
|
local docdir="/usr/share/doc/${PF}"
|
|
|
|
emake DESTDIR="${D}" docdir="${EPREFIX}/${docdir}" install
|
|
|
|
find "${D}" -name '*.la' -delete || die
|
|
|
|
einstalldocs
|
|
dodir "${docdir}"/html
|
|
mv -f "${ED}"/${docdir}/*.{html,png} "${ED}"/${docdir}/html/ || die
|
|
mv -f "${ED}"/usr/share/doc/${PN}/common "${ED}"/${docdir}/html/ || die
|
|
rm -r "${ED}"/usr/share/doc/${PN} || die
|
|
}
|