summaryrefslogtreecommitdiff
blob: f44bbfb235b52b5df22e89b368f8a8c3bf46568a (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/booh/booh-0.7.0.ebuild,v 1.1 2005/06/20 14:10:22 dams Exp $

DESCRIPTION="Static HTML photo album generator"
HOMEPAGE="http://www.zarb.org/~gc/html/booh.html"
SRC_URI="http://www.zarb.org/~gc/resource/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="gtk transcode encode exif"

DEPEND=">=dev-lang/ruby-1.8.2
	>=dev-ruby/ruby-gettext-0.8.0
	gtk? ( >=dev-ruby/ruby-gtk2-0.12.0
	>=x11-libs/gtk+-2.6.0 )
	>=media-gfx/imagemagick-6.2.0.4
	transcode? ( media-video/transcode )
	encode? ( media-video/mplayer )
	exif? ( media-gfx/exif )"

src_compile() {
	if ! use gtk; then
	  rm bin/booh-gui
	fi
	ruby setup.rb config
	ruby setup.rb setup
	cd ext
	ruby extconf.rb
	make
}

src_install() {
	ruby setup.rb install --prefix="${D}"
	cd ext
	make install DESTDIR=${D} libdir=${D}/`ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']"` archdir=${D}/`ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']"`
	cd ..
	dodoc AUTHORS INTERNALS README VERSION THEMES
}