summaryrefslogtreecommitdiff
path: root/app-text/bibutils/bibutils-6.10.ebuild
blob: fb3e20024c41088cb8df939b85fc2e6609622136 (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-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit toolchain-funcs

MY_P="${PN}_${PV}"
DESCRIPTION="Interconverts between various bibliography formats using common XML intermediate"
HOMEPAGE="https://sourceforge.net/p/bibutils/home/Bibutils/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}_src.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ~x86"

S="${WORKDIR}/${MY_P}"

src_configure() {
	./configure \
		--dynamic \
		--install-dir "${ED}/usr/bin" \
		--install-lib "${ED}/usr/$(get_libdir)" || die
}

src_compile() {
	emake \
		CC="$(tc-getCC)" \
		DISTRO_CFLAGS="${CFLAGS}" \
		LDFLAGSIN="${LDFLAGS}"
}

src_test() {
	emake \
		CC="$(tc-getCC)" \
		DISTRO_CFLAGS="${CFLAGS}" \
		LDFLAGSIN="${LDFLAGS}" test
}