blob: c027b8564d6868dccc6425ea2d418677f25f5281 (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit flag-o-matic systemd toolchain-funcs
DESCRIPTION="Create C parsers for libconfig and command-line"
HOMEPAGE="https://github.com/yrutschle/conf2struct/"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/yrutschle/conf2struct.git"
inherit git-r3
else
KEYWORDS="~amd64"
GIT_COMMIT="10ea3356b65e712fb000f4d37f00e1dc09c1e722"
SRC_URI="https://github.com/yrutschle/conf2struct/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${GIT_COMMIT}"
fi
PATCHES=(
"${FILESDIR}/${P}-install-and-uninstall.patch"
"${FILESDIR}/${P}-cc-and-cflags.patch"
"${FILESDIR}/${P}-destdir.patch"
"${FILESDIR}/${P}-install-not-run-all.patch"
"${FILESDIR}/${P}-dest-exists.patch"
)
LICENSE="GPL-2"
SLOT="0"
IUSE="caps pcre systemd tcpd"
RDEPEND="dev-libs/libconfig
dev-perl/Conf-Libconfig"
DEPEND="${RDEPEND}"
src_install(){
emake DESTDIR="${D}" prefix="${EPREFIX%/}/usr" install
}
|