commit: 06132a8a4d498c18aab6797dbbc6eaaf1afd3975 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> AuthorDate: Mon Aug 3 21:06:18 2020 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> CommitDate: Mon Aug 3 23:12:40 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06132a8a
app-misc/ddccontrol: verbump before fixes for testing Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> app-misc/ddccontrol/Manifest | 2 + app-misc/ddccontrol/ddccontrol-0.4.4.ebuild | 76 +++++++++++++++++++++ .../ddccontrol/ddccontrol-0.4.4_p20180123.ebuild | 78 ++++++++++++++++++++++ 3 files changed, 156 insertions(+) diff --git a/app-misc/ddccontrol/Manifest b/app-misc/ddccontrol/Manifest index 2fea6e00e67..baf4a8ecc8b 100644 --- a/app-misc/ddccontrol/Manifest +++ b/app-misc/ddccontrol/Manifest @@ -1 +1,3 @@ DIST ddccontrol-0.4.2_p20140105.tar.gz 177771 BLAKE2B eaaef394a6e9240d1742cc7fbd4ed80ff58315713d3977f8bd1c64f09465fb6a6f9cfb6ccb49e3190291256b6c816512128b95e2dfa16f31e8fadc2aa9367457 SHA512 7a28e9b81ee14e0431c57d372c8d43f861f61c35b441111e1f42d1aa62c333b0cc6a101dcb39d30e9661aaa85a02d755e4adef3a9b20a6952e1599e3ac12c72f +DIST ddccontrol-0.4.4.tar.gz 164389 BLAKE2B 480b712fc5911fde35a55ff8602866888850edfd6366bf0fb78ac3c726afed7745975b70c3359ae81c2583506ec1b2a2fc3c8a7aab9e8032f16bf27612430084 SHA512 6bc5587bc790492f13c677bd7a48f5ddbaa42f680c56c2fa18488ba5d322b853f6fb520c1317415a20a5df03c24c06edddb5e777d6fb34a34ee459170ae92119 +DIST ddccontrol-0.4.4_p20180123.tar.gz 165833 BLAKE2B d1af2e5f2d78bb9d8cb817e8f2666f70c5fc431a3a535931ea91fef5a2e9500e20e989d24d4cdea4a1c83631df120071bfbf845d342b1e826760f622c9dc5844 SHA512 c49a37e6231f0002a1dd387e2f2f0e1e4f989406bc84320011a55f596c8d1d7e0f094c8ed574db30fd0546fde64c8bd16350412cd4f64cc83b8d44a5469afe1d diff --git a/app-misc/ddccontrol/ddccontrol-0.4.4.ebuild b/app-misc/ddccontrol/ddccontrol-0.4.4.ebuild new file mode 100644 index 00000000000..5421c981fa0 --- /dev/null +++ b/app-misc/ddccontrol/ddccontrol-0.4.4.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2020 Gentoo Authors +# 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/" +SRC_URI="https://github.com/ddccontrol/ddccontrol/archive/${PV}.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 + app-arch/xz-utils + 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 +} diff --git a/app-misc/ddccontrol/ddccontrol-0.4.4_p20180123.ebuild b/app-misc/ddccontrol/ddccontrol-0.4.4_p20180123.ebuild new file mode 100644 index 00000000000..ef19bb42b26 --- /dev/null +++ b/app-misc/ddccontrol/ddccontrol-0.4.4_p20180123.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2020 Gentoo Authors +# 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="7c74181ed03839fb91e36c6012784cfce2ebe1a5" +MY_PV=${COMMIT_ID:-${PV}} +SRC_URI="https://github.com/ddccontrol/ddccontrol/archive/${MY_PV}.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 + app-arch/xz-utils + 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 +}