summaryrefslogtreecommitdiff
path: root/dev-util/autoproject/autoproject-0.20_p15.ebuild
blob: 1055a779bd7a75b1f5c2f2e4c6bc7b0acbda9348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PV=${PV%_p*}
DEB_VER=${PV#*_p}

inherit autotools

DESCRIPTION="Start a programming project using autotools and a command line parser generator"
HOMEPAGE="https://packages.debian.org/unstable/devel/autoproject"
SRC_URI="
	mirror://debian/pool/main/a/autoproject/${PN}_${MY_PV}.orig.tar.gz
	mirror://debian/pool/main/a/autoproject/${PN}_${MY_PV}-${DEB_VER}.debian.tar.xz
"
S="${WORKDIR}"/${PN}-${MY_PV}

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="
	dev-build/autoconf:*
	dev-build/automake:*
"
DEPEND="${RDEPEND}"
BDEPEND="
	test? (
		sys-apps/texinfo
		sys-devel/autogen
		virtual/texi2dvi
	)
"

PATCHES=(
	"${WORKDIR}"/debian/patches
	"${FILESDIR}"/${PN}-0.20_p15-getopt-cxx-conflict-noexcept.patch
)

src_prepare() {
	default

	sed -i -e 's:configure.in:configure.ac:' Makefile.am || die
	eautoreconf
}

src_test() {
	# chkclig: clig is an optional dep and it isn't packaged in Gentoo
	#          (nor in Debian since 2009)
	# chkag: fails, unclear why
	emake check XFAIL_TESTS="chkclig chkag"
}