summaryrefslogtreecommitdiff
path: root/dev-libs/libjodycode/libjodycode-3.1.ebuild
blob: 76fa041c7d71f7a491b81b9b51e3f2aba565bd12 (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
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Shared code used by several utilities written by Jody Bruchon"
HOMEPAGE="https://github.com/jbruchon/libjodycode"
SRC_URI="https://github.com/jbruchon/libjodycode/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64"

# missing test script
# https://github.com/jbruchon/jdupes/issues/191
RESTRICT="test"

PATCHES=(
	"${FILESDIR}"/${PN}-3.0.1-static-lib.patch
)

src_compile() {
	emake sharedlib
}

src_install() {
	emake \
		DESTDIR="${D}" \
		LIB_DIR="/usr/$(get_libdir)" \
		PREFIX="${EPREFIX}"/usr \
		install
	einstalldocs
}