blob: 77d355f63e5193e0ae486f640a0adae17df7bb40 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="2"
inherit versionator autotools
MY_PV=$(get_version_component_range 1-4)
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Simple static web photo gallery, designed to be clean and easily usable."
HOMEPAGE="http://cgg.bzatek.net/"
SRC_URI="http://www.hartwork.org/public/${MY_P}.tar.bz2"
LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-libs/glib
dev-libs/libxml2
media-gfx/imagemagick
media-gfx/exiv2"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S="${WORKDIR}"/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/${MY_P}-setup.xml-reporting.patch \
"${FILESDIR}"/${MY_P}-exif-orientation.patch
mkdir m4 # Workaround for aclocal
eautoreconf
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc NEWS README AUTHORS || die
# Install sample
rm sample/{gen.sh,Makefile*} || die
sed 's|<path>../../templates</path>|<path>/usr/share/cgg</path>|' \
-i sample/src/setup.xml || die
insinto /usr/share/cgg/
doins -r sample || die
}
|