diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-27 09:11:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-27 09:11:36 +0100 |
commit | e67c9b35124c5b3338943cf7793fe4402f03ad0f (patch) | |
tree | ae666570705e3bb470ce37171e065978b46063f5 /dev-libs/tntnet/tntnet-3.0.ebuild | |
parent | 9e68aee0e16e4b361fe06f9566c74b4bb2a22a27 (diff) |
gentoo auto-resync : 27:05:2023 - 09:11:36
Diffstat (limited to 'dev-libs/tntnet/tntnet-3.0.ebuild')
-rw-r--r-- | dev-libs/tntnet/tntnet-3.0.ebuild | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/dev-libs/tntnet/tntnet-3.0.ebuild b/dev-libs/tntnet/tntnet-3.0.ebuild index 24ed5d0c4ea1..af01d14155c8 100644 --- a/dev-libs/tntnet/tntnet-3.0.ebuild +++ b/dev-libs/tntnet/tntnet-3.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2021-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,9 +12,11 @@ SRC_URI="http://www.tntnet.org/download/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="amd64 ~sparc x86" -IUSE="doc gnutls server ssl" +IUSE="doc gnutls server ssl test" +RESTRICT="!test? ( test )" -RDEPEND=">=dev-libs/cxxtools-3.0 +RDEPEND=" + >=dev-libs/cxxtools-3.0 sys-libs/zlib[minizip] ssl? ( gnutls? ( @@ -24,10 +26,13 @@ RDEPEND=">=dev-libs/cxxtools-3.0 !gnutls? ( dev-libs/openssl:0= ) - )" + ) +" DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig - app-arch/zip" +BDEPEND=" + app-arch/zip + virtual/pkgconfig +" PATCHES=( "${FILESDIR}/${PN}-3.0-autoconf-2.70.patch" @@ -48,7 +53,7 @@ src_prepare() { } src_configure() { - local myconf="" + local myconf="$(use_enable test unittest)" if ! use server; then myconf="${myconf} --disable-server" @@ -57,6 +62,12 @@ src_configure() { econf ${myconf} } +src_test() { + cd test || die + emake || die + ./tntnet-test || die +} + src_install() { emake DESTDIR="${D}" install |