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/media-radio/xdx/xdx-2.4.2.ebuild

47 lines
1.2 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-radio/xdx/xdx-2.4.2.ebuild,v 1.8 2012/05/03 03:48:57 jdhore Exp $
EAPI="2"
inherit eutils
DESCRIPTION="a GTK+ TCP/IP DX-cluster and ON4KST chat client."
HOMEPAGE="http://www.ibiblio.org/pub/linux/apps/ham"
SRC_URI="http://www.ibiblio.org/pub/linux/apps/ham/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="nls"
RDEPEND=">=x11-libs/gtk+-2.12:2"
DEPEND="${RDEPEND}
virtual/pkgconfig
nls? ( sys-devel/gettext )"
src_prepare() {
# fix for bug #326627 - deprecated macro in gtk+ from 2.20 on
if has_version ">=x11-libs/gtk+-2.20" ; then
epatch "${FILESDIR}"/${PN}-gtk-2.20.patch
fi
# Drop DEPRECATED flags, bug #391091
sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' \
src/Makefile.am src/Makefile.in || die
}
src_configure() {
econf $(use_enable nls)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
dodoc AUTHORS ChangeLog NEWS README TODO || die
}
pkg_postinst() {
elog "To use the rig control feature, install media-libs/hamlib"
elog "and enable hamlib in the Preferences dialog. (no need for recompile)"
}