diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/ddccontrol/ddccontrol-0.4.2_p20140105-r2.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/ddccontrol/ddccontrol-0.4.2_p20140105-r2.ebuild')
-rw-r--r-- | app-misc/ddccontrol/ddccontrol-0.4.2_p20140105-r2.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/app-misc/ddccontrol/ddccontrol-0.4.2_p20140105-r2.ebuild b/app-misc/ddccontrol/ddccontrol-0.4.2_p20140105-r2.ebuild new file mode 100644 index 000000000000..6744bc439b0b --- /dev/null +++ b/app-misc/ddccontrol/ddccontrol-0.4.2_p20140105-r2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils autotools + +DESCRIPTION="DDCControl allows control of monitor parameters via DDC" +HOMEPAGE="http://ddccontrol.sourceforge.net/" +COMMIT_ID="9d89d8c0b959a4da62ecc50fb2aeb23142d4bfb4" +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="doc gtk nls +pci static-libs" +S=${WORKDIR}/${PN}-${COMMIT_ID} + +RDEPEND="app-misc/ddccontrol-db + dev-libs/libxml2:2 + gtk? ( x11-libs/gtk+:2 ) + nls? ( sys-devel/gettext ) + pci? ( sys-apps/pciutils )" +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() { + # amdadl broken, bug #527268 + econf \ + --htmldir='$(datarootdir)'/doc/${PF}/html \ + --disable-gnome-applet \ + --disable-amdadl \ + $(use_enable doc) \ + $(use_enable gtk gnome) \ + $(use_enable nls) \ + $(use_enable pci ddcpci) \ + $(use_enable static-libs static) +} + +src_install() { + default + use static-libs || find "${ED}" -name '*.la' -delete +} |