summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-misc/ddccontrol/ChangeLog8
-rw-r--r--app-misc/ddccontrol/ddccontrol-0.4.2_p20130703.ebuild76
2 files changed, 83 insertions, 1 deletions
diff --git a/app-misc/ddccontrol/ChangeLog b/app-misc/ddccontrol/ChangeLog
index 90f8a0aeae7d..01652dd97480 100644
--- a/app-misc/ddccontrol/ChangeLog
+++ b/app-misc/ddccontrol/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/ddccontrol
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/ddccontrol/ChangeLog,v 1.34 2014/01/03 18:56:35 mrueg Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/ddccontrol/ChangeLog,v 1.35 2014/01/04 04:46:54 mrueg Exp $
+
+*ddccontrol-0.4.2_p20130703 (04 Jan 2014)
+
+ 04 Jan 2014; Manuel Rüger <mrueg@gentoo.org>
+ +ddccontrol-0.4.2_p20130703.ebuild:
+ Add new snapshot.
03 Jan 2014; Manuel Rüger <mrueg@gentoo.org> -ddccontrol-0.1.3.ebuild,
-ddccontrol-0.2.ebuild, -ddccontrol-0.3-r1.ebuild, -ddccontrol-0.3-r2.ebuild,
diff --git a/app-misc/ddccontrol/ddccontrol-0.4.2_p20130703.ebuild b/app-misc/ddccontrol/ddccontrol-0.4.2_p20130703.ebuild
new file mode 100644
index 000000000000..6f9981f55c96
--- /dev/null
+++ b/app-misc/ddccontrol/ddccontrol-0.4.2_p20130703.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/ddccontrol/ddccontrol-0.4.2_p20130703.ebuild,v 1.1 2014/01/04 04:46:54 mrueg Exp $
+
+EAPI=5
+
+inherit eutils autotools
+
+DESCRIPTION="DDCControl allows control of monitor parameters via DDC"
+HOMEPAGE="http://ddccontrol.sourceforge.net/"
+COMMIT_ID="5339ab459702e554592fa6cd851a2d03c38c20b8"
+SRC_URI="https://github.com/ddccontrol/ddccontrol/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="+ddcpci doc gnome gtk nls static-libs video_cards_fglrx"
+S=${WORKDIR}/${PN}-${COMMIT_ID}
+
+RDEPEND=">=app-misc/ddccontrol-db-20060730
+ dev-libs/libxml2:2
+ sys-apps/pciutils
+ gtk? ( >=x11-libs/gtk+-2.4:2 )
+ gnome? ( >=gnome-base/gnome-panel-2.10 )
+ nls? ( sys-devel/gettext )
+ video_cards_fglrx? ( x11-libs/amd-adl-sdk )"
+DEPEND="${RDEPEND}
+ dev-perl/XML-Parser
+ dev-util/intltool
+ sys-kernel/linux-headers
+ doc? ( >=app-text/docbook-xsl-stylesheets-1.65.1
+ >=dev-libs/libxslt-1.1.6
+ app-text/htmltidy )"
+
+src_prepare() {
+ sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467574
+ sed -i '/;Application/d' src/gddccontrol/gddccontrol.desktop.in || die
+
+ # ppc/ppc64 do not have inb/outb/ioperm
+ # they also do not have (sys|asm)/io.h
+ if ! use amd64 && ! use x86 ; then
+ local card
+ for card in sis intel810 ; do
+ sed -r -i \
+ -e "/${card}.Po/d" \
+ -e "s~${card}[^[:space:]]*~ ~g" \
+ src/ddcpci/Makefile.{am,ini} || die
+ done
+ sed -i \
+ -e '/sis_/d' \
+ -e '/i810_/d' \
+ src/ddcpci/main.c || die
+ fi
+
+ ## Save for a rainy day or future patching
+ touch config.rpath ABOUT-NLS
+ eautoreconf
+ intltoolize --force || die "intltoolize failed"
+}
+
+src_configure() {
+ econf \
+ --htmldir='$(datarootdir)'/doc/${PF}/html \
+ $(use_enable ddcpci) \
+ $(use_enable doc) \
+ $(use_enable gnome gnome-applet) \
+ $(use_enable gtk gnome) \
+ $(use_enable nls) \
+ $(use_enable static-libs static) \
+ $(use_enable video_cards_fglrx amdadl)
+}
+
+src_install() {
+ default
+ use static-libs || find "${ED}" -name '*.la' -delete
+}