]> Frank Brehm's Git Trees - portage.git/commitdiff
media-video/nvidia-settings dazu
authorFrank Brehm <frank@brehm-online.com>
Wed, 18 Nov 2009 12:05:16 +0000 (12:05 +0000)
committerFrank Brehm <frank@brehm-online.com>
Wed, 18 Nov 2009 12:05:16 +0000 (12:05 +0000)
git-svn-id: http://svn.brehm-online.com/svn/portage@81 18afd0d2-9f2f-0410-a0ac-b8d70fd81a6b

dev-perl/OpenOffice-OOBuilder/Manifest
dev-perl/OpenOffice-OOBuilder/OpenOffice-OOBuilder-0.09.ebuild
media-video/nvidia-settings/Manifest [new file with mode: 0644]
media-video/nvidia-settings/nvidia-settings-190.42-r1.ebuild [new file with mode: 0644]

index 07ba48b8f9c04da9ed4867448d09e853f09d282a..e7dd803409150a6c2a996b744f0c340c301bc853 100644 (file)
@@ -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
index a62e5f870cbfda4cf00899bc01a7dd53b19c2d70..ec986de0af4fb3c20817e7b6f194928b9cd33671 100644 (file)
@@ -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 (file)
index 0000000..32d1651
--- /dev/null
@@ -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 (file)
index 0000000..cbb7c17
--- /dev/null
@@ -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
+}