You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-client/jd/jd-2.7.5_p101228.ebuild

66 lines
1.4 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/jd/jd-2.7.5_p101228.ebuild,v 1.3 2012/05/03 06:01:03 jdhore Exp $
EAPI=3
inherit eutils autotools
MY_P="${P/_p/-}"
MY_P="${MY_P/_/-}"
DESCRIPTION="gtk2 based 2ch browser written in C++"
HOMEPAGE="http://jd4linux.sourceforge.jp/"
SRC_URI="mirror://sourceforge.jp/jd4linux/50363/${MY_P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="alsa gnome gnutls migemo"
RDEPEND="dev-cpp/gtkmm:2.4
dev-libs/glib:2
x11-misc/xdg-utils
alsa? ( >=media-libs/alsa-lib-1 )
gnome? ( >=gnome-base/libgnomeui-2 )
!gnome? (
x11-libs/libSM
x11-libs/libICE
)
gnutls? ( >=net-libs/gnutls-1.2 )
!gnutls? ( >=dev-libs/openssl-0.9 )
migemo? ( app-text/cmigemo )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S="${WORKDIR}/${MY_P}"
src_prepare() {
eautoreconf
}
src_configure() {
local myconf="--with-xdgopen"
# use gnomeui sm instead of Xorg SM/ICE
if use gnome ; then
myconf="${myconf} --with-sessionlib=gnomeui"
else
myconf="${myconf} --with-sessionlib=xsmp"
fi
econf \
$(use_with alsa) \
$(use_with !gnutls openssl) \
$(use_with migemo) \
$(use_with migemo migemodict /usr/share/migemo/migemo-dict) \
${myconf}
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
doicon ${PN}.png
domenu ${PN}.desktop
dodoc AUTHORS ChangeLog NEWS README
}