From 15283581be8ccf0da64de69ab0c615d1d90f720f Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 18 Nov 2009 12:05:16 +0000 Subject: [PATCH] media-video/nvidia-settings dazu git-svn-id: http://svn.brehm-online.com/svn/portage@81 18afd0d2-9f2f-0410-a0ac-b8d70fd81a6b --- dev-perl/OpenOffice-OOBuilder/Manifest | 2 +- .../OpenOffice-OOBuilder-0.09.ebuild | 3 +- media-video/nvidia-settings/Manifest | 2 + .../nvidia-settings-190.42-r1.ebuild | 76 +++++++++++++++++++ 4 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 media-video/nvidia-settings/Manifest create mode 100644 media-video/nvidia-settings/nvidia-settings-190.42-r1.ebuild diff --git a/dev-perl/OpenOffice-OOBuilder/Manifest b/dev-perl/OpenOffice-OOBuilder/Manifest index 07ba48b..e7dd803 100644 --- a/dev-perl/OpenOffice-OOBuilder/Manifest +++ b/dev-perl/OpenOffice-OOBuilder/Manifest @@ -1,2 +1,2 @@ DIST OpenOffice-OOBuilder-0.09.tar.gz 14004 RMD160 d6d226003ed9dbe1c64482cdbf2852fb77d7363e SHA1 6a2c9a9a1809a8317dc47bb89fd1f15f1462253d SHA256 c5e6278f5a968a70605620a0822894eade8e8493f9836811a512e14cff064633 -EBUILD OpenOffice-OOBuilder-0.09.ebuild 727 RMD160 24d4cda5ab675839a9a599bf18fa88e87a0ac061 SHA1 59523688af16a7ee6912e9b9aa265372b0048ab0 SHA256 9bd3102ba593d9fe640198a50868d0bc36a79c6e96af55f19e609ce5e7c9662b +EBUILD OpenOffice-OOBuilder-0.09.ebuild 753 RMD160 c171b16a28d60d3460a684b62f0af13f7f3e5485 SHA1 31349776e0548fd01cc6bd5cb9649a28fdc4fc43 SHA256 f7a52ec746be449ffba4e0a460fdf59df7e01a39f5daddb37de201ea30770745 diff --git a/dev-perl/OpenOffice-OOBuilder/OpenOffice-OOBuilder-0.09.ebuild b/dev-perl/OpenOffice-OOBuilder/OpenOffice-OOBuilder-0.09.ebuild index a62e5f8..ec986de 100644 --- a/dev-perl/OpenOffice-OOBuilder/OpenOffice-OOBuilder-0.09.ebuild +++ b/dev-perl/OpenOffice-OOBuilder/OpenOffice-OOBuilder-0.09.ebuild @@ -17,7 +17,8 @@ IUSE=" examples " src_install() { - emake install DESTDIR="${D}" || die + #emake install DESTDIR="${D}" || die + perl-module_src_install if use examples ; then exeinto /usr/share/doc/${PF}/examples diff --git a/media-video/nvidia-settings/Manifest b/media-video/nvidia-settings/Manifest new file mode 100644 index 0000000..32d1651 --- /dev/null +++ b/media-video/nvidia-settings/Manifest @@ -0,0 +1,2 @@ +DIST nvidia-settings-190.42.tar.gz 1395752 RMD160 e6029ebe3899dec2c18997d6774683759c8b63ea SHA1 0793f0da295c3bddbdec21f1b41ee9030439aa55 SHA256 799fd498a643cc430af392461cce81d97797182091055948676a46e4fc75d6bb +EBUILD nvidia-settings-190.42-r1.ebuild 1960 RMD160 1464a6559952d1338a44755cfb18f6838512a32f SHA1 e81ad03c5aac91d08ad09feada985b2cc5d14fe1 SHA256 175a6519545fb0682fd1530881adab2c5355c8b6bd1ca96c7f740b6159511458 diff --git a/media-video/nvidia-settings/nvidia-settings-190.42-r1.ebuild b/media-video/nvidia-settings/nvidia-settings-190.42-r1.ebuild new file mode 100644 index 0000000..cbb7c17 --- /dev/null +++ b/media-video/nvidia-settings/nvidia-settings-190.42-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-settings/nvidia-settings-190.42.ebuild,v 1.2 2009/11/01 12:11:44 ssuominen Exp $ + +inherit eutils toolchain-funcs multilib flag-o-matic + +MY_P="${PN}-1.0" + +DESCRIPTION="NVIDIA Linux X11 Settings Utility" +HOMEPAGE="http://www.nvidia.com/" +SRC_URI="ftp://download.nvidia.com/XFree86/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" +IUSE="" + +# xorg-server is used in the depends as nvidia-settings builds against some +# headers in /usr/include/xorg/. +# This also allows us to optimize out a lot of the other dependancies, as +# between gtk and xorg-server, almost all libraries and headers are accounted +# for. +DEPEND=">=x11-libs/gtk+-2 + dev-util/pkgconfig + x11-base/xorg-server + x11-libs/libXt + x11-libs/libXv + x11-proto/xf86driproto + x11-proto/xf86vidmodeproto" + +RDEPEND=">=x11-libs/gtk+-2 + x11-base/xorg-server + x11-libs/libXt + x11-drivers/nvidia-drivers" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" +} + +src_compile() { + einfo "Building libXNVCtrl..." + cd "${S}/src/libXNVCtrl" + make clean || die "Cleaning old libXNVCtrl failed" + append-flags -fPIC + emake CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" libXNVCtrl.a || die "Building libXNVCtrl failed!" + filter-flags -fPIC + + cd "${S}" + einfo "Building nVidia-Settings..." + emake CC="$(tc-getCC)" || die "Failed to build nvidia-settings" +} + +src_install() { + # Install the executable + exeinto /usr/bin + doexe nvidia-settings + + # Install libXNVCtrl and headers + insinto "/usr/$(get_libdir)" + doins src/libXNVCtrl/libXNVCtrl.a + insinto /usr/include/NVCtrl + doins src/libXNVCtrl/{NVCtrl,NVCtrlLib}.h + + # Install icon and .desktop entry + doicon "${FILESDIR}/icon/${PN}.png" + domenu "${FILESDIR}/icon/${PN}.desktop" + + # Install manpage + doman doc/nvidia-settings.1 + + # Now install documentation + dodoc doc/*.txt +} -- 2.39.5