summaryrefslogtreecommitdiff
path: root/media-gfx/llgal/llgal-0.13.19-r2.ebuild
blob: 17f4ee8b8a6255392f1324a50bae4fc2a8119d6e (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit perl-module

DESCRIPTION="Command-line static web gallery generator"
HOMEPAGE="http://bgoglin.free.fr/llgal/"
SRC_URI="https://github.com/bgoglin/llgal/archive/${P}.tar.gz"
S="${WORKDIR}/${PN}-${P}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
# Package warrants IUSE doc and possibly examples
IUSE="exif"

RDEPEND="
	dev-perl/Image-Size
	dev-perl/URI
	dev-perl/Locale-gettext
	virtual/imagemagick-tools
	exif? ( media-libs/exiftool )"

src_compile() {
	emake \
		PREFIX="${EPREFIX}"/usr \
		SYSCONFDIR="${EPREFIX}"/etc \
		MANDIR="${EPREFIX}"/usr/share/man \
		PERL_INSTALLDIRS=vendor
	mv doc/llgalrc . || die
}

src_install() {
	emake DESTDIR="${D}" \
		LOCALES="${LINGUAS}" \
		PREFIX="${EPREFIX}"/usr \
		SYSCONFDIR="${EPREFIX}"/etc \
		MANDIR="${EPREFIX}"/usr/share/man \
		DOCDIR="${EPREFIX}"/usr/share/doc/${PF}/html \
		PERL_INSTALLDIRS=vendor \
		install install-doc install-man
	perl_delete_localpod
	dodoc README llgalrc llgalrc.5
}