summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorЧистяков Марк <mark2007k@list.ru>2009-07-14 07:29:03 +0600
committerЧистяков Марк <mark2007k@list.ru>2009-07-14 07:29:03 +0600
commite8f3d02073a697574ddf7ac6b63d34b400d36c89 (patch)
treea9026829c21fda33e75b03788c30bf7c2cc240d1
parent53b3906407137567d3462296b55998e941b8a5af (diff)
new file: x11-drivers/nvidia-drivers/nvidia-drivers-185.18.14.ebuild
l---------app-admin/ulogd/files140
l---------cross-i686-pc-linux-gnu/gcc2
l---------cross-i686-pc-linux-gnu/gdb2
l---------cross-i686-pc-linux-gnu/glibc2
l---------cross-i686-pc-linux-gnu/insight2
l---------cross-i686-pc-mingw32/binutils2
l---------cross-i686-pc-mingw32/gcc2
l---------cross-i686-pc-mingw32/gdb2
l---------cross-i686-pc-mingw32/insight2
l---------cross-i686-pc-mingw32/mingw-runtime2
l---------cross-i686-pc-mingw32/w32api2
l---------dev-cpp/commoncpp2/files/1.6.1-gcc42_atomicity.patch139
l---------dev-cpp/commoncpp2/files/1.6.2-autoconf.patch139
l---------dev-libs/glib/files130
l---------dev-util/subversion/files83
l---------games-rpg/tmw/files142
l---------kde-misc/tork/files148
l---------media-sound/mpd/files120
l---------media-video/vlc/files125
l---------net-analyzer/snort/files136
l---------net-analyzer/wireshark/files124
l---------net-im/centerim/files144
l---------net-misc/tor/files154
l---------sys-fs/e2fsprogs/files154
l---------www-apps/trac/files146
-rw-r--r--x11-drivers/nvidia-drivers/Manifest19
-rw-r--r--x11-drivers/nvidia-drivers/files/09nvidia2
-rw-r--r--x11-drivers/nvidia-drivers/files/NVIDIA_glx-defines.patch11
-rw-r--r--x11-drivers/nvidia-drivers/files/NVIDIA_glx-glheader.patch13
-rw-r--r--x11-drivers/nvidia-drivers/files/NVIDIA_glx-makefile.patch15
-rw-r--r--x11-drivers/nvidia-drivers/files/NVIDIA_i2c-hwmon.patch17
-rw-r--r--x11-drivers/nvidia-drivers/files/drm_agp_memory-2.6.31.patch33
-rw-r--r--x11-drivers/nvidia-drivers/files/eblits/donvidia.eblit21
-rw-r--r--x11-drivers/nvidia-drivers/files/eblits/mtrr_check.eblit19
-rw-r--r--x11-drivers/nvidia-drivers/files/eblits/paravirt_check.eblit20
-rw-r--r--x11-drivers/nvidia-drivers/files/eblits/src_install-libs.eblit116
-rw-r--r--x11-drivers/nvidia-drivers/files/eblits/want_tls.eblit33
-rw-r--r--x11-drivers/nvidia-drivers/files/libGL.la-r232
-rw-r--r--x11-drivers/nvidia-drivers/files/nvidia40
-rw-r--r--x11-drivers/nvidia-drivers/files/nvidia-169.0714
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-185.18.14.ebuild575
l---------x11-libs/cairo/files132
l---------x11-libs/gtk+/files154
l---------x11-libs/pango/files152
44 files changed, 3434 insertions, 28 deletions
diff --git a/app-admin/ulogd/files b/app-admin/ulogd/files
index dde5a02..d3d5cb1 120000
--- a/app-admin/ulogd/files
+++ b/app-admin/ulogd/files
@@ -1 +1,139 @@
-/var/paludis/repositories/gentoo/app-admin/ulogd/files \ No newline at end of file
+/var/paludis/repositories/gentoo/app-admin/ulogd/filesunder the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/ulogd-2.0.0_beta2.ebuild,v 1.2 2009/02/09 09:36:03 angelos Exp $
+
+EAPI="1"
+
+MY_P=${P/_/}
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="A userspace logging daemon for netfilter/iptables related logging"
+HOMEPAGE="http://netfilter.org/projects/ulogd/index.html"
+SRC_URI="http://ftp.netfilter.org/pub/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="mysql postgres sqlite3 pcap doc"
+
+RDEPEND="net-firewall/iptables
+ net-libs/libnfnetlink
+ net-libs/libnetfilter_log
+ net-libs/libnetfilter_conntrack
+ mysql? ( virtual/mysql )
+ postgres? ( virtual/postgresql-server )
+ sqlite3? ( dev-db/sqlite:3 )
+ pcap? ( net-libs/libpcap )"
+
+DEPEND="${RDEPEND}
+ sys-devel/autoconf:2.5
+ doc? (
+ app-text/linuxdoc-tools
+ app-text/texlive-core
+ )"
+
+src_compile() {
+ econf \
+ $(use_with mysql) \
+ $(use_with postgres pgsql) \
+ $(use_with sqlite3) \
+ $(use_with pcap)
+
+ emake || die "emake failed"
+
+ if use doc ; then
+ # build extra documentation files (.ps, .txt, .html, .dvi)
+ emake -C doc || die "emake for docs failed"
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "emake install failed"
+
+ doinitd "${FILESDIR}"/ulogd || die "doinitd failed"
+
+ insinto /etc
+ doins ulogd.conf || die "ulogd.conf installation failed"
+
+ dodoc AUTHORS README
+
+ if use doc ; then
+ dohtml doc/ulogd.html
+ dodoc doc/ulogd.dvi
+ dodoc doc/ulogd.txt
+ dodoc doc/ulogd.ps
+ fi
+
+ use mysql && dodoc doc/mysql-ulogd2.sql
+ use postgres && dodoc doc/pgsql-ulogd2.sql
+ use sqlite3 && dodoc doc/sqlite3.table
+
+ # install logrotate config
+ insinto /etc/logrotate.d
+ newins ulogd.logrotate ulogd || die "logrotate config failed"
+
+ doman ulogd.8 || die
+}
+
+ # install logrotate config
+ insinto /etc/logrotate.d
+ newins ulogd.logrotate ulogd || die "logrotate config failed"
+
+ doman ulogd.8 || die
+}
+e="MPD_NO_IPV6=noipv6"
+ fi
+ local myconf
+ myconf="--enable-proc-uptime"
+ if useq X; then
+ myconf="${myconf} --enable-x11 --enable-double-buffer --enable-xdamage --enable-own-window"
+ myconf="${myconf} $(use_enable truetype xft)"
+ else
+ myconf="${myconf} --disable-x11 --disable-double-buffer --disable-xdamage --disable-own-window"
+ myconf="${myconf} --disable-xft"
+ fi
+ econf \
+ ${myconf} \
+ $(use_enable audacious) \
+ $(use_enable bmpx) \
+ $(use_enable debug) \
+ $(use_enable hddtemp ) \
+ $(use_enable moc) \
+ $(use_enable mpd) \
+ $(use_enable nvidia) \
+ $(use_enable rss) \
+ $(use_enable smapi) \
+ $(use_enable wifi wlan) \
+ $(use_enable !ipv6 portmon) || die "econf failed"
+ emake ${mymake} || die "compile failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc ChangeLog AUTHORS README
+ dohtml doc/docs.html doc/config_settings.html doc/variables.html
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${S}"/extras/vim/ftdetect/conkyrc.vim
+
+ insinto /usr/share/vim/vimfiles/syntax
+ doins "${S}"/extras/vim/syntax/conkyrc.vim
+ fi
+
+ if use nano-syntax; then
+ insinto /usr/share/nano/
+ doins "${S}"/extras/nano/conky.nanorc
+ fi
+}
+
+pkg_postinst() {
+ elog "You can find the sample configuration file at"
+ elog "/etc/conky/conky.conf. To customize it, copy"
+ elog "/etc/conky/conky.conf to ~/.conkyrc and edit"
+ elog "it to your liking."
+ elog
+ elog "For more info on Conky's new features,"
+ elog "please look at the README and ChangeLog:"
+ elog "/usr/share/doc/${PF}/README.bz2"
+ elog "/usr/share/doc/${PF}/ChangeLog.bz2"
+ elog "There are also pretty p \ No newline at end of file
diff --git a/cross-i686-pc-linux-gnu/gcc b/cross-i686-pc-linux-gnu/gcc
index 8e0883f..a7acca0 120000
--- a/cross-i686-pc-linux-gnu/gcc
+++ b/cross-i686-pc-linux-gnu/gcc
@@ -1 +1 @@
-/usr/portage/sys-devel/gcc \ No newline at end of file
+/usr/portage/sys-devel/gccutils \ No newline at end of file
diff --git a/cross-i686-pc-linux-gnu/gdb b/cross-i686-pc-linux-gnu/gdb
index 0ab6bdc..fba7577 120000
--- a/cross-i686-pc-linux-gnu/gdb
+++ b/cross-i686-pc-linux-gnu/gdb
@@ -1 +1 @@
-/usr/portage/sys-devel/gdb \ No newline at end of file
+/usr/portage/sys-devel/gdbght-headers \ No newline at end of file
diff --git a/cross-i686-pc-linux-gnu/glibc b/cross-i686-pc-linux-gnu/glibc
index a5553b0..e8bc646 120000
--- a/cross-i686-pc-linux-gnu/glibc
+++ b/cross-i686-pc-linux-gnu/glibc
@@ -1 +1 @@
-/usr/portage/sys-libs/glibc \ No newline at end of file
+/usr/portage/sys-libs/glibcux-headers \ No newline at end of file
diff --git a/cross-i686-pc-linux-gnu/insight b/cross-i686-pc-linux-gnu/insight
index f7036ec..eeab84b 120000
--- a/cross-i686-pc-linux-gnu/insight
+++ b/cross-i686-pc-linux-gnu/insight
@@ -1 +1 @@
-/usr/portage/dev-util/insight \ No newline at end of file
+/usr/portage/dev-util/insight-headers \ No newline at end of file
diff --git a/cross-i686-pc-mingw32/binutils b/cross-i686-pc-mingw32/binutils
index 0f98435..163bba9 120000
--- a/cross-i686-pc-mingw32/binutils
+++ b/cross-i686-pc-mingw32/binutils
@@ -1 +1 @@
-/usr/portage/sys-devel/binutils \ No newline at end of file
+/usr/portage/sys-devel/binutilseaders \ No newline at end of file
diff --git a/cross-i686-pc-mingw32/gcc b/cross-i686-pc-mingw32/gcc
index 8e0883f..91a4d0a 120000
--- a/cross-i686-pc-mingw32/gcc
+++ b/cross-i686-pc-mingw32/gcc
@@ -1 +1 @@
-/usr/portage/sys-devel/gcc \ No newline at end of file
+/usr/portage/sys-devel/gccw-runtimers \ No newline at end of file
diff --git a/cross-i686-pc-mingw32/gdb b/cross-i686-pc-mingw32/gdb
index 0ab6bdc..c33b6b8 120000
--- a/cross-i686-pc-mingw32/gdb
+++ b/cross-i686-pc-mingw32/gdb
@@ -1 +1 @@
-/usr/portage/sys-devel/gdb \ No newline at end of file
+/usr/portage/sys-devel/gdbghtuntimers \ No newline at end of file
diff --git a/cross-i686-pc-mingw32/insight b/cross-i686-pc-mingw32/insight
index f7036ec..e0cc006 120000
--- a/cross-i686-pc-mingw32/insight
+++ b/cross-i686-pc-mingw32/insight
@@ -1 +1 @@
-/usr/portage/dev-util/insight \ No newline at end of file
+/usr/portage/dev-util/insightuntimers \ No newline at end of file
diff --git a/cross-i686-pc-mingw32/mingw-runtime b/cross-i686-pc-mingw32/mingw-runtime
index 68039f2..f8a3d94 120000
--- a/cross-i686-pc-mingw32/mingw-runtime
+++ b/cross-i686-pc-mingw32/mingw-runtime
@@ -1 +1 @@
-/usr/portage/dev-util/mingw-runtime \ No newline at end of file
+/usr/portage/dev-util/mingw-runtimers \ No newline at end of file
diff --git a/cross-i686-pc-mingw32/w32api b/cross-i686-pc-mingw32/w32api
index a8cc256..653f8a6 120000
--- a/cross-i686-pc-mingw32/w32api
+++ b/cross-i686-pc-mingw32/w32api
@@ -1 +1 @@
-/usr/portage/dev-util/w32api \ No newline at end of file
+/usr/portage/dev-util/w32apiruntimers \ No newline at end of file
diff --git a/dev-cpp/commoncpp2/files/1.6.1-gcc42_atomicity.patch b/dev-cpp/commoncpp2/files/1.6.1-gcc42_atomicity.patch
index 32f9e81..a5e83e7 120000
--- a/dev-cpp/commoncpp2/files/1.6.1-gcc42_atomicity.patch
+++ b/dev-cpp/commoncpp2/files/1.6.1-gcc42_atomicity.patch
@@ -1 +1,138 @@
-/var/paludis/repositories/gentoo/dev-cpp/commoncpp2/files/1.6.1-gcc42_atomicity.patch \ No newline at end of file
+/var/paludis/repositories/gentoo/dev-cpp/commoncpp2/files/1.6.1-gcc42_atomicity.patch08-11-16 15:24:10.000000000 +0100
+@@ -95,6 +95,9 @@
+ AC_CHECK_HEADERS([linux/netfilter_ipv4.h linux/netfilter_ipv6.h],,,
+ [#ifdef HAVE_LIMITS_H
+ #include <limits.h>
++ #endif
++ #ifdef HAVE_NETINET_IN_H
++ #include <netinet/in.h>
+ #endif])
+ if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes" &&
+ [ test "$ac_cv_header_linux_netfilter_ipv6_h" = "yes" &&
+ON} ${PCAP_FLAG} ${SSL_FLAG}
+
+ install : libnessus.la
+ test -d $(DESTDIR)${libdir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${libdir}
+diff -ru nessus-libraries~/nessus.tmpl.in nessus-libraries/nessus.tmpl.in
+--- nessus-libraries~/nessus.tmpl.in 2007-01-21 19:49:30.000000000 +0100
++++ nessus-libraries/nessus.tmpl.in 2007-01-21 20:17:45.000000000 +0100
+@@ -61,6 +61,9 @@
+ #
+ BUILD_PCAP=@BUILD_PCAP@
+
++PCAP_FLAG=@pcap_flag@
++SSL_FLAG=@ssl@
++
+
+ # Some defines you may want to modify
+ DEFS=@DEFS@ $(DEBUG_SSL) $(USE_CIPHER) $(DEBUG)
+============================================
+--- sv7.orig/synthasm.nas
++++ sv7/synthasm.nas
+@@ -2225,3 +2225,6 @@ endproc
+ ;
+ ; end of synthasm.nas
+ ;
++%ifidn __OUTPUT_FORMAT__,elf
++section .note.GNU-stack noalloc noexec nowrite progbits
++%endif
+/cheats" ]] ; then
+ for cheat in `find "${PSEMUDIR}/cheats" -maxdepth 1 -type f -printf '%f '`; do
+ if [[ ! -e "cheats/${cheat}" ]] ; then
+ ln -s "${PSEMUDIR}/cheats/${cheat}" "cheats/${cheat}"
+ fi
+ done
+ fi
+
+ if [[ -d "${PSEMUDIR}/bios" ]] ; then
+ for bios in `find "${PSEMUDIR}/bios" -maxdepth 1 -type f -printf '%f '`; do
+ if [[ ! -e "bios/${bios}" ]] ; then
+ ln -s "${PSEMUDIR}/bios/${bios}" "bios/${bios}"
+ fi
+ done
+ fi
+fi
+
+# check for bios
+if [[ -z "`cd bios && ls`" ]] ; then
+ # if the bios directory is empty, then ... well ...
+ echo
+ echo "*** Put your BIOS file into ~/.epsxe/bios/"
+ echo " or ePSXe may not work!"
+ echo
+fi
+
+# execute program (with args)
+export LD_PRELOAD="libpthread.so.0:${LD_PRELOAD}" # fix for Bug #26121
+exec ./epsxe "$@"
+_event.jaxis.axis == 5)
++ {
++ return (0x1000 +
++ (0x100 * sdl_event.jaxis.which + 0xA));
++ }
++ }
++ else
+ {
+ return (Get_Key ());
+ }
+--- old/src/gens/util/rom.h 2004-03-14 09:33:06.000000000 -0500
++++ new/src/gens/util/rom.h 2006-12-30 17:30:58.000000000 -0500
+@@ -52,7 +52,7 @@
+ int Detect_Format(char *Name);
+
+ int Get_Rom(void);
+-
++int Open_Rom(char *Name);
+ int Pre_Load_Rom(char *Name);
+ int Load_Rom_CC(char *Name, int Size);
+ struct Rom *Load_Bios(char *Name);
+--- old/src/gens/util/rom.c 2004-05-18 16:33:59.000000000 -0400
++++ new/src/gens/util/rom.c 2007-01-05 13:23:45.596482516 -0500
+@@ -99,7 +99,7 @@
+ void
+ Update_Rom_Dir (char *Path)
+ {
+- Get_Dir_From_Path (Path, Rom_Dir);
++ sprintf (Rom_Dir, "%s", Path);;
+ }
+
+
+@@ -390,11 +390,10 @@
+ gint res;
+ char Name[2048];
+ gchar *filename;
+- int sys;
+
+ widget =
+ create_file_chooser_dialog ("Open Rom", GTK_FILE_CHOOSER_ACTION_OPEN);
+-// fileselection_set_dir (fd.filesel, Rom_Dir);
++ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER(widget), Rom_Dir);
+ addRomsFilter (widget);
+ res = gtk_dialog_run (GTK_DIALOG (widget));
+ if (res == GTK_RESPONSE_OK)
+@@ -407,6 +406,15 @@
+ g_free (filename);
+ Free_Rom (Game);
+
++ return Open_Rom(Name);
++
++}
++
++int
++Open_Rom(char *Name)
++{
++ int sys;
++
+ sys = Detect_Format (Name);
+
+ if (sys < 1)
+@@ -458,6 +466,7 @@
+ break;
+ }
+ return -1;
++
+ }
+
+ int
+--- old/src/gens/gtkui/glade/interface.c 2004-05-19 15:49:28.000000000 -0400
++++ new/src/gens/gtkui/glade/intep \ No newline at end of file
diff --git a/dev-cpp/commoncpp2/files/1.6.2-autoconf.patch b/dev-cpp/commoncpp2/files/1.6.2-autoconf.patch
index 8ddb051..f3e0abf 120000
--- a/dev-cpp/commoncpp2/files/1.6.2-autoconf.patch
+++ b/dev-cpp/commoncpp2/files/1.6.2-autoconf.patch
@@ -1 +1,138 @@
-/var/paludis/repositories/gentoo/dev-cpp/commoncpp2/files/1.6.2-autoconf.patch \ No newline at end of file
+/var/paludis/repositories/gentoo/dev-cpp/commoncpp2/files/1.6.2-autoconf.patcht.m4 2008-11-16 15:24:10.000000000 +0100
+@@ -95,6 +95,9 @@
+ AC_CHECK_HEADERS([linux/netfilter_ipv4.h linux/netfilter_ipv6.h],,,
+ [#ifdef HAVE_LIMITS_H
+ #include <limits.h>
++ #endif
++ #ifdef HAVE_NETINET_IN_H
++ #include <netinet/in.h>
+ #endif])
+ if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes" &&
+ [ test "$ac_cv_header_linux_netfilter_ipv6_h" = "yes" &&
+ON} ${PCAP_FLAG} ${SSL_FLAG}
+
+ install : libnessus.la
+ test -d $(DESTDIR)${libdir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${libdir}
+diff -ru nessus-libraries~/nessus.tmpl.in nessus-libraries/nessus.tmpl.in
+--- nessus-libraries~/nessus.tmpl.in 2007-01-21 19:49:30.000000000 +0100
++++ nessus-libraries/nessus.tmpl.in 2007-01-21 20:17:45.000000000 +0100
+@@ -61,6 +61,9 @@
+ #
+ BUILD_PCAP=@BUILD_PCAP@
+
++PCAP_FLAG=@pcap_flag@
++SSL_FLAG=@ssl@
++
+
+ # Some defines you may want to modify
+ DEFS=@DEFS@ $(DEBUG_SSL) $(USE_CIPHER) $(DEBUG)
+============================================
+--- sv7.orig/synthasm.nas
++++ sv7/synthasm.nas
+@@ -2225,3 +2225,6 @@ endproc
+ ;
+ ; end of synthasm.nas
+ ;
++%ifidn __OUTPUT_FORMAT__,elf
++section .note.GNU-stack noalloc noexec nowrite progbits
++%endif
+/cheats" ]] ; then
+ for cheat in `find "${PSEMUDIR}/cheats" -maxdepth 1 -type f -printf '%f '`; do
+ if [[ ! -e "cheats/${cheat}" ]] ; then
+ ln -s "${PSEMUDIR}/cheats/${cheat}" "cheats/${cheat}"
+ fi
+ done
+ fi
+
+ if [[ -d "${PSEMUDIR}/bios" ]] ; then
+ for bios in `find "${PSEMUDIR}/bios" -maxdepth 1 -type f -printf '%f '`; do
+ if [[ ! -e "bios/${bios}" ]] ; then
+ ln -s "${PSEMUDIR}/bios/${bios}" "bios/${bios}"
+ fi
+ done
+ fi
+fi
+
+# check for bios
+if [[ -z "`cd bios && ls`" ]] ; then
+ # if the bios directory is empty, then ... well ...
+ echo
+ echo "*** Put your BIOS file into ~/.epsxe/bios/"
+ echo " or ePSXe may not work!"
+ echo
+fi
+
+# execute program (with args)
+export LD_PRELOAD="libpthread.so.0:${LD_PRELOAD}" # fix for Bug #26121
+exec ./epsxe "$@"
+_event.jaxis.axis == 5)
++ {
++ return (0x1000 +
++ (0x100 * sdl_event.jaxis.which + 0xA));
++ }
++ }
++ else
+ {
+ return (Get_Key ());
+ }
+--- old/src/gens/util/rom.h 2004-03-14 09:33:06.000000000 -0500
++++ new/src/gens/util/rom.h 2006-12-30 17:30:58.000000000 -0500
+@@ -52,7 +52,7 @@
+ int Detect_Format(char *Name);
+
+ int Get_Rom(void);
+-
++int Open_Rom(char *Name);
+ int Pre_Load_Rom(char *Name);
+ int Load_Rom_CC(char *Name, int Size);
+ struct Rom *Load_Bios(char *Name);
+--- old/src/gens/util/rom.c 2004-05-18 16:33:59.000000000 -0400
++++ new/src/gens/util/rom.c 2007-01-05 13:23:45.596482516 -0500
+@@ -99,7 +99,7 @@
+ void
+ Update_Rom_Dir (char *Path)
+ {
+- Get_Dir_From_Path (Path, Rom_Dir);
++ sprintf (Rom_Dir, "%s", Path);;
+ }
+
+
+@@ -390,11 +390,10 @@
+ gint res;
+ char Name[2048];
+ gchar *filename;
+- int sys;
+
+ widget =
+ create_file_chooser_dialog ("Open Rom", GTK_FILE_CHOOSER_ACTION_OPEN);
+-// fileselection_set_dir (fd.filesel, Rom_Dir);
++ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER(widget), Rom_Dir);
+ addRomsFilter (widget);
+ res = gtk_dialog_run (GTK_DIALOG (widget));
+ if (res == GTK_RESPONSE_OK)
+@@ -407,6 +406,15 @@
+ g_free (filename);
+ Free_Rom (Game);
+
++ return Open_Rom(Name);
++
++}
++
++int
++Open_Rom(char *Name)
++{
++ int sys;
++
+ sys = Detect_Format (Name);
+
+ if (sys < 1)
+@@ -458,6 +466,7 @@
+ break;
+ }
+ return -1;
++
+ }
+
+ int
+--- old/src/gens/gtkui/glade/interface.c 2004-05-19 15:49:28.000000000 -0400
++++ new/src/gens/gtkui/glade/intep \ No newline at end of file
diff --git a/dev-libs/glib/files b/dev-libs/glib/files
index fbba1c6..659567b 120000
--- a/dev-libs/glib/files
+++ b/dev-libs/glib/files
@@ -1 +1,129 @@
-/var/paludis/repositories/gentoo/dev-libs/glib/files \ No newline at end of file
+/var/paludis/repositories/gentoo/dev-libs/glib/filesd under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.18.2.ebuild,v 1.1 2008/10/19 02:16:37 leio Exp $
+
+inherit libtool eutils flag-o-matic subversion
+
+DESCRIPTION="The GLib library of C routines"
+HOMEPAGE="http://www.gtk.org/"
+
+ESVN_REPO_URI="http://svn.gnome.org/svn/glib/trunk"
+ESVN_STORE_DIR="${DISTDIR}/svn-src"
+ESVN_PROJECT="${PN/-svn}"
+ESVN_BOOTSTRAP="./autogen.sh"
+
+S="${WORKDIR}/${P/_/}"
+
+LICENSE="LGPL-2"
+SLOT=""
+KEYWORDS=""
+IUSE="debug doc fam hardened selinux xattr"
+
+RDEPEND="virtual/libc
+ virtual/libiconv
+ xattr? ( sys-apps/attr )
+ fam? ( virtual/fam )"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.16
+ >=sys-devel/gettext-0.11
+ dev-util/gtk-doc
+"
+
+src_unpack() {
+ subversion_src_unpack
+ cd "${S}"
+
+ if use ppc64 && use hardened ; then
+ replace-flags -O[2-3] -O1
+ epatch "${FILESDIR}/glib-2.6.3-testglib-ssp.patch"
+ fi
+
+ if use ia64 ; then
+ # Only apply for < 4.1
+ local major=$(gcc-major-version)
+ local minor=$(gcc-minor-version)
+ if (( major < 4 || ( major == 4 && minor == 0 ) )); then
+ epatch "${FILESDIR}/glib-2.10.3-ia64-atomic-ops.patch"
+ fi
+ fi
+
+ # Don't fail gio tests when ran without userpriv, upstream bug 552912
+ # This is only a temporary workaround, remove as soon as possible
+ epatch "${FILESDIR}/${PN}-2.18.1-workaround-gio-test-failure-without-userpriv.patch"
+
+ # Fix gmodule issues on fbsd; bug #184301
+ epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch
+
+ [[ ${CHOST} == *-freebsd* ]] && elibtoolize
+}
+
+src_compile() {
+ local myconf
+
+ epunt_cxx
+
+ # Building with --disable-debug highly unrecommended. It will build glib in
+ # an unusable form as it disables some commonly used API. Please do not
+ # convert this to the use_enable form, as it results in a broken build.
+ # -- compnerd (3/27/06)
+ use debug && myconf="--enable-debug"
+
+ # always build static libs, see #153807
+ econf ${myconf} \
+ $(use_enable xattr) \
+ $(use_enable doc man) \
+ $(use_enable doc gtk-doc) \
+ $(use_enable fam) \
+ $(use_enable selinux) \
+ --enable-static \
+ --with-threads=posix || die "configure failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+
+ # Do not install charset.alias even if generated, leave it to libiconv
+ rm -f "${D}/usr/lib/charset.alias"
+
+ dodoc AUTHORS ChangeLog* NEWS* README
+}
+ $(use_enable mpd) \
+ $(use_enable nvidia) \
+ $(use_enable rss) \
+ $(use_enable smapi) \
+ $(use_enable wifi wlan) \
+ $(use_enable !ipv6 portmon) || die "econf failed"
+ emake ${mymake} || die "compile failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc ChangeLog AUTHORS README
+ dohtml doc/docs.html doc/config_settings.html doc/variables.html
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${S}"/extras/vim/ftdetect/conkyrc.vim
+
+ insinto /usr/share/vim/vimfiles/syntax
+ doins "${S}"/extras/vim/syntax/conkyrc.vim
+ fi
+
+ if use nano-syntax; then
+ insinto /usr/share/nano/
+ doins "${S}"/extras/nano/conky.nanorc
+ fi
+}
+
+pkg_postinst() {
+ elog "You can find the sample configuration file at"
+ elog "/etc/conky/conky.conf. To customize it, copy"
+ elog "/etc/conky/conky.conf to ~/.conkyrc and edit"
+ elog "it to your liking."
+ elog
+ elog "For more info on Conky's new features,"
+ elog "please look at the README and ChangeLog:"
+ elog "/usr/share/doc/${PF}/README.bz2"
+ elog "/usr/share/doc/${PF}/ChangeLog.bz2"
+ elog "There are also pretty p \ No newline at end of file
diff --git a/dev-util/subversion/files b/dev-util/subversion/files
index 4f5737c..4bee5e6 120000
--- a/dev-util/subversion/files
+++ b/dev-util/subversion/files
@@ -1 +1,82 @@
-/var/paludis/repositories/gentoo/dev-util/subversion/files \ No newline at end of file
+/var/paludis/repositories/gentoo/dev-util/subversion/filesory already exists and I will not overwrite it."
+ echo "Delete \"${ROOT}${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
+ else
+ mkdir -p "${ROOT}${SVN_REPOS_LOC}/conf"
+
+ einfo ">>> Populating repository directory ..."
+ # Create initial repository.
+ "${ROOT}usr/bin/svnadmin" create "${ROOT}${SVN_REPOS_LOC}/repos"
+
+ einfo ">>> Setting repository permissions ..."
+ SVNSERVE_USER="$(. "${ROOT}etc/conf.d/svnserve" ; echo "${SVNSERVE_USER}")"
+ SVNSERVE_GROUP="$(. "${ROOT}etc/conf.d/svnserve" ; echo "${SVNSERVE_GROUP}")"
+ if use apache2 ; then
+ [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
+ [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
+ else
+ [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
+ [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
+ enewgroup "${SVNSERVE_GROUP}"
+ enewuser "${SVNSERVE_USER}" -1 -1 "${SVN_REPOS_LOC}" "${SVNSERVE_GROUP}"
+ fi
+ chown -Rf "${SVNSERVE_USER}:${SVNSERVE_GROUP}" "${ROOT}${SVN_REPOS_LOC}/repos"
+ chmod -Rf go-rwx "${ROOT}${SVN_REPOS_LOC}/conf"
+ chmod -Rf o-rwx "${ROOT}${SVN_REPOS_LOC}/repos"
+ fi
+}
+{SVN_REPOS_LOC}:"
+ elog
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog
+ elog "Subversion has multiple server types, take your pick:"
+ elog
+ elog " - svnserve daemon: "
+ elog " 1. Edit /etc/conf.d/svnserve"
+ elog " 2. Fix the repository permissions (see \"Fixing the repository permissions\")"
+ elog " 3. Start daemon: /etc/init.d/svnserve start"
+ elog " 4. Make persistent: rc-update add svnserve default"
+ elog
+ elog " - svnserve via xinetd:"
+ elog " 1. Edit /etc/xinetd.d/svnserve (remove disable line)"
+ elog " 2. Fix the repository permissions (see \"Fixing the repository permissions\")"
+ elog " 3. Restart xinetd.d: /etc/init.d/xinetd restart"
+ elog
+ elog " - svn over ssh:"
+ elog " 1. Fix the repository permissions (see \"Fixing the repository permissions\")"
+ elog " Additionally run:"
+ elog " groupadd svnusers"
+ elog " chown -R root:svnusers ${SVN_REPOS_LOC}/repos"
+ elog " 2. Create an svnserve wrapper in /usr/local/bin to set the umask you"
+ elog " want, for example:"
+ elog " #!/bin/bash"
+ elog " . /etc/conf.d/svnserve"
+ elog " umask 007"
+ elog " exec /usr/bin/svnserve \${SVNSERVE_OPTS} \"\$@\""
+ elog
+
+ if use apache2; then
+ elog " - http-based server:"
+ elog " 1. Edit /etc/conf.d/apache2 to include both \"-D DAV\" and \"-D SVN\""
+ elog " 2. Create an htpasswd file:"
+ elog " htpasswd2 -m -c ${SVN_REPOS_LOC}/conf/svnusers USERNAME"
+ elog " 3. Fix the repository permissions (see \"Fixing the repository permissions\")"
+ elog " 4. Restart Apache: /etc/init.d/apache2 restart"
+ elog
+ fi
+
+ elog " Fixing the repository permissions:"
+ elog " chmod -Rf go-rwx ${SVN_REPOS_LOC}/conf"
+ elog " chmod -Rf g-w,o-rwx ${SVN_REPOS_LOC}/repos"
+ elog " chmod -Rf g+rw ${SVN_REPOS_LOC}/repos/db"
+ elog " chmod -Rf g+rw ${SVN_REPOS_LOC}/repos/locks"
+ elog
+
+ elog "If you intend to use svn-hot-backup, you can specify the number of"
+ elog "backups to keep per repository by specifying an environment variable."
+ elog "If you want to keep e.g. 2 backups, do the following:"
+ elog "echo '# hot-backup: Keep that many repository backups around' > /etc/env.d/80subversion"
+ elog "echo 'SVN_HOTBACKUP_BACKUPS_NUMBER=2' >> /etc/env.d/80subversion"
+ elog
+
+ if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then
+ ewarn "You upgraded from an older version of Berkeley DB and may experiencep \ No newline at end of file
diff --git a/games-rpg/tmw/files b/games-rpg/tmw/files
index d4d4d35..f387acf 120000
--- a/games-rpg/tmw/files
+++ b/games-rpg/tmw/files
@@ -1 +1,141 @@
-/var/paludis/repositories/gentoo/games-rpg/tmw/files \ No newline at end of file
+/var/paludis/repositories/gentoo/games-rpg/tmw/filesd under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=1
+inherit qt3 git autotools
+
+DESCRIPTION="SFLphone aims to become your desktop's VoIP companion."
+HOMEPAGE="http://www.sflphone.org/"
+SRC_URI=""
+LICENSE="GPL-2"
+SLOT=""
+
+EGIT_REPO_URI="http://sflphone.org/git/sflphone.git"
+
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE="qt3 speex zeroconf"
+
+DEPEND=">=net-libs/libosip-2.2.2
+ >=net-libs/libeXosip-1.9.0
+ >=dev-cpp/commoncpp2-1.3.21
+ >=net-libs/ccrtp-1.3.5
+ >=media-libs/portaudio-19_pre
+ >=media-libs/libsamplerate-0.1.1
+ net-libs/pjsip
+ media-sound/pulseaudio
+ qt3? ( >=x11-libs/qt-3.3:3 )
+ speex? ( media-libs/speex )
+ zeroconf? ( net-misc/mDNSResponder )"
+
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+# unpack ${A}
+ git_src_unpack
+ cd "${S}"
+ eautoreconf
+ # fix compile error on genstef's box..doesn't seem to break anything
+# sed -i -e "s/Qt::Key_Mode_switch/0x0100117e/" src/gui/qt/SFLPhoneWindow.cpp
+}
+src_compile () {
+ econf \
+ $(use_enable qt3 sflphoneqt) \
+ $(use_enable speex) \
+ $(use_enable zeroconf) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc README
+}
+ x11-libs/libXv )"
+
+DEPEND="${RDEPEND}
+ >=sys-devel/make-3.81
+ >=dev-util/pkgconfig-0.12.0
+ >=dev-util/intltool-0.35
+ doc? ( app-text/scrollkeeper
+ app-text/gnome-doc-utils )"
+
+DOCS="AUTHORS ChangeLog FAQ NEWS README"
+
+pkg_setup() {
+ # ekiga has to be built like opal and ptlib but as opal has to be built
+ # like ptlib, it should be possible to check only opal but as ekiga is
+ # linking to both, we are cheking both
+ if use debug && (! built_with_use dev-libs/ptlib debug ||
+ ! built_with_use net-libs/opal debug); then
+ eerror "You need to build dev-libs/ptlib and net-libs/opal with\
+ USE=debug enabled."
+ die "dev-libs/ptlib and net-libs/opal have to be built with USE=debug"
+ fi
+
+ if ! use debug && (built_with_use dev-libs/ptlib debug ||
+ built_with_use net-libs/opal debug); then
+ eerror "You need to build dev-libs/ptlib and net-libs/opal without\
+ USE=debug."
+ die "dev-libs/ptlib and net-libs/opal has not to be built with USE=debug"
+ fi
+
+ # dbus-service is always enable if dbus is enable, no reason to disable it
+ G2CONF="${G2CONF}
+ $(use_enable avahi)
+ $(use_enable dbus)
+ $(use_enable dbus dbus_service)
+ $(use_enable debug)
+ $(use_enable doc gdu)
+ $(use_enable eds)
+ $(use_enable gconf)
+ $(use_enable gnome)
+ $(use_enable ldap)
+ $(use_enable libnotify notify)
+ $(use_enable xv)
+ "
+}
+
+src_unpack() {
+
+ git_src_unpack
+ cd "${S}"
+# eautoreconf
+
+ # remove call to gconftool-2 --shutdown
+# sed -i -e '/gconftool-2 --shutdown/d' Makefile.in \
+# || die "Patching Makefile.in failed"
+
+ # fix ekiga-helper dbus service .in file
+# sed -i -e 's/@PACKAGE_NAME@/ekiga/'\
+# src/components/org.ekiga.Helper.service.in \
+# || die "Patching src/components/org.ekiga.Helper.service.in failed"
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+
+ if ! use gnome; then
+ ewarn "USE=-gnome is experimental, some weirdness with the UI and"
+ ewarn "config keys should appear."
+ fi
+}
+aclocal.m4
+
+eautoreconf
+}
+
+src_compile() {
+addpredict /etc/krb5.conf
+local modules myconf
+
+modules="mod_ratio:mod_readme"
+use acl && modules="${modules}:mod_facl"
+use ban && modules="${modules}:mod_ban"
+use case && modules="${modules}:mod_case"
+use clamav && modules="${modules}:mod_clamav"
+use deflate && modules="${modules}:mod_deflate"
+use pam && modules="${modules}:mod_auth_pam"
+use radius && modules="${modules}:mod_radius"
+use rewrite && modules="${modules}:mod_rewp \ No newline at end of file
diff --git a/kde-misc/tork/files b/kde-misc/tork/files
index 2135396..bec0f31 120000
--- a/kde-misc/tork/files
+++ b/kde-misc/tork/files
@@ -1 +1,147 @@
-/var/paludis/repositories/gentoo/kde-misc/tork/files \ No newline at end of file
+/var/paludis/repositories/gentoo/kde-misc/tork/filesd under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-misc/tork/tork-0.27.ebuild,v 1.3 2008/06/30 01:38:27 carlo Exp $
+
+ARTS_REQUIRED="never"
+
+inherit kde multilib cvs autotools
+
+DESCRIPTION="TorK is a powerful anonymity manager for the KDE and acts as a frontedn to Tor."
+HOMEPAGE="http://tork.sourceforge.net/"
+SRC_URI=""
+
+ECVS_SERVER="tork.cvs.sourceforge.net:/cvsroot/tork"
+ECVS_MODULE="tork"
+ECVS_AUTH="pserver"
+ECVS_USER="anonymous"
+S="${WORKDIR}/${PN}"
+
+
+LICENSE="GPL-2"
+SLOT=""
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE="gnutls"
+
+DEPEND="dev-libs/openssl
+ >=dev-libs/geoip-1.4.0
+ gnutls? ( >=net-libs/gnutls-2.2.2 )
+ !gnutls? ( >=dev-libs/openssl-0.9.8g )"
+
+RDEPEND="${DEPEND}
+ >=net-misc/tor-0.1.2.14
+ >=net-proxy/privoxy-3.0.3-r5
+ >=net-proxy/tsocks-1.8_beta5-r2"
+
+need-kde 3.5
+
+#PATCHES=( "${FILESDIR}/${P}-ext_tsocks.patch"
+# "${FILESDIR}/${P}+gcc-4.3.patch" )
+
+src_compile() {
+ # Fix desktop file
+ cd ${S}
+ sed -i -e "s:^\(Categories=.*\):\1;:" "${S}/src/tork.desktop"
+
+ local myconf="--with-external-geoip --with-conf=/etc/socks/tsocks.conf"
+ use gnutls && myconf="${myconf} --enable-gnutls"
+
+ kde_src_compile
+}
+
+pkg_postinst() {
+ if ! built_with_use --missing false net-proxy/tsocks tordns; then
+ ewarn "WARNING: you have net-proxy/tsocks installed without"
+ ewarn "the patch to avoid DNS leaking while using Tor."
+ ewarn "For better privacy, please emerge again net-proxy/tsocks"
+ ewarn "with the USE flag 'tordns' enabled."
+ fi
+}
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ rm "${D}/etc/pango/pango.modules"
+}
+
+pkg_postinst() {
+ if [[ "${ROOT}" == "/" ]] ; then
+ einfo "Generating modules listing..."
+
+ local PANGO_CONFDIR=
+
+ if multilib_enabled ; then
+ PANGO_CONFDIR="/etc/pango/${CHOST}"
+ else
+ PANGO_CONFDIR="/etc/pango"
+ fi
+
+ mkdir -p ${PANGO_CONFDIR}
+
+ pango-querymodules > ${PANGO_CONFDIR}/pango.modules
+ fi
+}
+
+src_compile(){
+ econf\
+ $(use_enable doc gtk-doc) \
+ $(use_enable doc man) \
+ $(useq debug && echo --enable-debug=yes )
+ emake
+}
+ib.patch"
+
+ # Workaround adobe flash infinite loop. Patch from http://bugzilla.gnome.org/show_bug.cgi?id=463773#c11
+ epatch "${FILESDIR}/${PN}-2.12.0-flash-workaround.patch"
+
+ # Don't break inclusion of gtkclist.h, upstream bug 536767
+ epatch "${FILESDIR}/${PN}-2.14.3-limit-gtksignal-includes.patch"
+
+ # -O3 and company cause random crashes in applications. Bug #133469
+ replace-flags -O3 -O2
+ strip-flags
+
+ use ppc64 && append-flags -mminimal-toc
+
+ elibtoolize
+}
+
+src_compile() {
+ # png always on to display icons (foser)
+ local myconf="$(use_enable doc gtk-doc) \
+ $(use_with jpeg libjpeg) \
+ $(use_with jpeg2k libjasper) \
+ $(use_with tiff libtiff) \
+ $(use_enable xinerama) \
+ $(use_enable cups cups auto) \
+ --with-libpng \
+ --with-gdktarget=x11 \
+ --with-xinput"
+
+ # Passing --disable-debug is not recommended for production use
+ use debug && myconf="${myconf} --enable-debug=yes"
+
+ econf ${myconf} || die "configure failed"
+ emake || die "compile failed"
+}
+
+src_test() {
+ Xemake check || die "tests failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+
+ set_gtk2_confdir
+ dodir ${GTK2_CONFDIR}
+ keepdir ${GTK2_CONFDIR}
+
+ # see bug #133241
+ echo 'gtk-fallback-icon-theme = "gnome"' > "${D}/${GTK2_CONFDIR}/gtkrc"
+
+ # Enable xft in environment as suggested by <utx@gentoo.org>
+ dodir /etc/env.d
+ echo "GDK_USE_XFT=1" > "${D}/etc/env.d/50gtk2"
+
+ dodoc AUTHORS ChangeLog* HACKING NEWS* README*
+
+ # This has to be removed, because it's multilib specific; genep \ No newline at end of file
diff --git a/media-sound/mpd/files b/media-sound/mpd/files
index 1e69236..037b845 120000
--- a/media-sound/mpd/files
+++ b/media-sound/mpd/files
@@ -1 +1,119 @@
-/var/paludis/repositories/mpd/media-sound/mpd/files \ No newline at end of file
+/var/paludis/repositories/mpd/media-sound/mpd/filesgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sound</herd>
+</pkgmetadata>
+pack-tools/musepack-tools-1.15v-r1.ebuild,v 1.2 2007/05/14 21:21:37 beandog Exp $
+
+IUSE="static 16bit esd"
+
+inherit eutils flag-o-matic flag-o-matic
+
+S="${WORKDIR}/sv7"
+
+DESCRIPTION="Musepack audio compression tools"
+HOMEPAGE="http://www.musepack.net"
+SRC_URI="http://files.musepack.net/source/mpcsv7-src-${PV}.tar.bz2"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+
+RDEPEND="esd? ( media-sound/esound )
+ media-libs/id3lib
+ !media-sound/mppenc"
+
+DEPEND="${RDEPEND}
+ x86? ( dev-lang/nasm )
+ x86-fbsd? ( dev-lang/nasm )
+ amd64? ( dev-lang/nasm )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch "${FILESDIR}/${P}-Makefile.patch"
+ epatch "${FILESDIR}/${P}-gcc4.patch"
+ use esd && epatch "${FILESDIR}/${P}-Makefile-esd.patch"
+
+ sed -i 's/#define USE_IRIX_AUDIO/#undef USE_IRIX_AUDIO/' mpp.h
+
+ if ! use esd ; then
+ sed -i -e 's/#define USE_ESD_AUDIO/#undef USE_ESD_AUDIO/' mpp.h
+ else
+ sed -i -e 's/^LDADD = -lm$/LDADD = $(shell esd-config --libs)/' \
+ Makefile
+ fi
+
+ if [[ $(tc-arch) != "x86" ]] ; then
+ sed -i 's/#define USE_ASM/#undef USE_ASM/' mpp.h
+ fi
+
+ if [[ "$(tc-arch)" == "amd64" ]] ; then
+ sed -i 's/-f elf$/-f elf64/' Makefile
+ fi
+
+ use 16bit && sed -i 's|//#define MAKE_16BIT|#define MAKE_16BIT|' mpp.h
+
+ # Bug #109699; console redirection to /dev/tty makes no sense
+ sed -i -e 's/$(LDADD) &> $(LOGFILE)/$(LDADD)/' Makefile
+
+ epatch "${FILESDIR}/${P}-execstack.patch"
+ epatch "${FILESDIR}/${P}-fbsd.patch"
+}
+
+src_compile() {
+ filter-flags "-fprefetch-loop-arrays"
+ filter-flags "-mfpmath=sse" "-mfpmath=sse,387"
+ use static && export BLD_STATIC=1
+
+ append-flags "-I${S}"
+
+ emake CC="$(tc-getCC)" clean || die
+
+ ARCH= emake CC="$(tc-getCC)" mppenc mppdec replaygain || die
+}
+
+src_install() {
+ dobin mppenc mppdec replaygain
+ dodoc README doc/ChangeLog doc/MANUAL.TXT doc/NEWS doc/SV7.txt doc/TODO*
+}
+b187301dfcff1c2605e91d13d21db160806a563d8c75f9b
+et source from the gentoo mirror. Added nasm
+ dependency. Added to ~amd64. Removed -mpreferred-stack-boundary=2 from vendor
+ CFLAGS.
+
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> musepack-tools-1.15r.ebuild:
+ Add flag-o-matic for bug 49179
+
+*musepack-tools-1.15r (22 Apr 2004)
+
+ 22 Apr 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ musepack-tools-1.15r.ebuild, files/musepack-tools-1.15r-Makefile.patch:
+ Initial ebuild provided by 4nykey@nm.ru in bug #47615.
+
+; Tony Vroon <chainsaw@gentoo.org>
+ +files/musepack-tools-1.15v-Makefile.patch,
+ +files/musepack-tools-1.15v-gcc4.patch, musepack-tools-1.15s-r2.ebuild,
+ musepack-tools-1.15t.ebuild, musepack-tools-1.15u.ebuild,
+ +musepack-tools-1.15v.ebuild:
+ Version bump, closes bug #83365. Correct LICENSE in all ebuilds.
+
+*musepack-tools-1.15u (08 Mar 2005)
+
+ 08 Mar 2005; Jan Brinkmann <luckyduck@gentoo.org>
+ +files/musepack-tools-1.15u-Makefile.patch,
+ +files/musepack-tools-1.15u-gcc4.patch, +musepack-tools-1.15u.ebuild:
+ new upstream version, fixes #83528
+
+ 09 Feb 2005; Jan Brinkmann <luckyduck@gentoo.org>
+ musepack-tools-1.15s-r2.ebuild, musepack-tools-1.15t.ebuild:
+ corrected issue with esound dependency, fixes #81311
+
+ 11 Feb 2005; Tony Vroon <chainsaw@gentoo.org>
+ +files/musepack-tools-1.15t-gcc4.patch, musepack-tools-1.15t.ebuild:
+ GCC 4 compatability fix by Radoslaw -AstralStorm- Szkodzinski
+ <astralstorm@gorzow.mm.pl> closes bug #81443.
+
+ 07 Feb 2005; Jan Brinkmann <luckyduck@gentoo.org>
+ files/musepack-tools-1.15t-Makefile.patch:
+ modifiep \ No newline at end of file
diff --git a/media-video/vlc/files b/media-video/vlc/files
index 7501948..be8f75f 120000
--- a/media-video/vlc/files
+++ b/media-video/vlc/files
@@ -1 +1,124 @@
-/var/paludis/repositories/gimpel/media-video/vlc/files \ No newline at end of file
+/var/paludis/repositories/gimpel/media-video/vlc/files --enable-fast-install \
+ ${myconf} || die "configuration failed"
+
+ if [[ $(gcc-major-version) == 2 ]]; then
+ sed -i -e s:"-fomit-frame-pointer":: vlc-config || die "-fomit-frame-pointer patching failed"
+ fi
+
+ emake || die "make of VLC failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS MAINTAINERS HACKING THANKS NEWS README \
+ doc/fortunes.txt doc/intf-cdda.txt doc/intf-vcd.txt
+
+ rm -rf "${D}/usr/share/doc/vlc" \
+ "${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico}
+
+ if use nsplugin; then
+ dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
+ mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
+ "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
+ fi
+
+ use skins || rm -rf "${D}/usr/share/vlc/skins2"
+
+ for res in 16 32 48; do
+ insinto /usr/share/icons/hicolor/${res}x${res}/apps/
+ newins "${S}"/share/vlc${res}x${res}.png vlc.png
+ done
+
+ use wxwindows || rm "${D}/usr/share/applications/vlc.desktop"
+}
+-disable-vlm"
+
+ if use nsplugin; then
+ if use xulrunner; then
+ XPIDL=/usr/$(get_libdir)/xulrunner
+ MOZILLA_CONFIG=/usr/bin/xulrunner-config
+ elif use seamonkey; then
+ XPIDL=/usr/$(get_libdir)/seamonkey
+ MOZILLA_CONFIG=/usr/$(get_libdir)/seamonkey/seamonkey-config
+ else
+ XPIDL=/usr/$(get_libdir)/mozilla-firefox
+ MOZILLA_CONFIG=/usr/$(get_libdir)/mozilla-firefox/firefox-config
+ fi
+ fi
+
+ econf \
+ $(use_enable 3dfx glide) \
+ $(use_enable a52) \
+ $(use_enable aalib aa) \
+ $(use_enable alsa) \
+ $(use_enable altivec) \
+ $(use_enable arts) \
+ $(use_enable avahi bonjour) \
+ $(use_enable bidi fribidi) \
+ $(use_enable cdda) $(use_enable cdda cddax)\
+ $(use_enable cddb libcddb) \
+ $(use_enable cdio libcdio) \
+ $(use_enable daap) \
+ $(use_enable dbus) $(use_enable dbus dbus-control) \
+ --disable-dirac \
+ $(use_enable directfb) \
+ $(use_enable dc1394) \
+ $(use_enable dts dca) \
+ --disable-dv \
+ $(use_enable dvb) \
+ $(use_enable dvd dvdread) $(use_enable dvd dvdplay) $(use_enable dvd dvdnav) \
+ $(use_enable esd) \
+ --disable-faad \
+ $(use_enable fbcon fb) \
+ $(use_enable ffmpeg) \
+ $(use_enable flac) \
+ --disable-fluidsynth \
+ $(use_enable ggi) \
+ $(use_enable gnome gnomevfs) \
+ $(use_enable gnutls) \
+ $(use_enable hal) \
+ $(use_enable httpd) \
+ $(use_enable id3tag) \
+ $(use_enable jack) \
+ $(use_enable libcaca caca) \
+ $(use_enable libgcrypt) \
+ $(use_enable libnotify notify) \
+ --disable-libtar \
+ $(use_enable lirc) \
+ $(use_enable live live555) \
+ $(use_enable lua) \
+ $(use_enable matroska mkv) \
+ $(use_enable modplug mod) \
+ $(use_enable mp3 mad) \
+ $(use_enable mpeg libmpeg2) \
+ $(use_enable musepack mpc) \
+ $(use_enable musicbrainz) \
+ $(use_enable ncurses) \
+ $(use_enable nsplugin mozilla) XPIDL="${XPIDL}" MOZILLA_CONFIG="${MOZILLA_CONFIG}" \
+ $(use_enable ogg) \
+ $(use_enable opengl glx) $(use_enable opengl) $(use_enable opengl galaktos) \
+ $(use_enable optimisememory optimize-memory) \
+ $(use_enable oss) \
+ $(use_enable png) \
+ --disable-portaudio \
+ $(use_enable pvr) \
+ $(use_enable real) \
+ $(use_enable rtsp realrtsp) \
+ $(use_enable remoteosd) \
+ $(use_enable samba smb) \
+ $(use_enable sdl) \
+ $(use_enable sdl-image) \
+ $(use_enable shout) \
+ $(use_enable skins skins2) \
+ $(use_enable speex) \
+ $(use_enable stream sout) \
+ $(use_enable svg) \
+ $(use_enable svga svgalib) \
+ $(use_enable taglib) \
+ $(use_enable theora) \
+ $(use_enable truetype freetype) \
+ $(use_enable twolame) \
+ $(use_enable upnp) \
+ $(use_enable v4l) \
+ $(use_enable v4l2) p \ No newline at end of file
diff --git a/net-analyzer/snort/files b/net-analyzer/snort/files
index 09dbbef..69b13ff 120000
--- a/net-analyzer/snort/files
+++ b/net-analyzer/snort/files
@@ -1 +1,135 @@
-/var/paludis/repositories/gentoo/net-analyzer/snort/files \ No newline at end of file
+/var/paludis/repositories/gentoo/net-analyzer/snort/filese/doc/${PF}/schemas/create_mysql.bz2 | mysql -p snort"
+ elog
+ elog " PostgreSQL: import /usr/share/doc/${PF}/schemas/create_postgresql.bz2"
+ elog
+ elog " ODBC: look at /usr/share/doc/${PF}/schemas/"
+ elog
+ elog "Users using the unified output plugin and barnyard do not need to"
+ elog "compile database support into snort, but still need to set up their"
+ elog "database as shown above."
+ elog
+ ewarn "Only a basic set of rules was installed."
+ ewarn "Please add your other sets of rules to /etc/snort/rules."
+ ewarn "For more information on rules, visit ${HOMEPAGE}."
+ if use sguil ; then
+ elog "SGUIL needs to catch up with recent snort. If you plan on using SGUIL"
+ elog "you should unmerge ${P} and emerge snort-2.4.x"
+ fi
+}
+
+cap
+ flexresp2? ( dev-libs/libdnet )
+ react? ( ~net-libs/libnet-1.0.2a )
+ postgres? ( || ( dev-db/postgresql dev-db/libpq ) )
+ mysql? ( virtual/mysql )
+ prelude? ( >=dev-libs/libprelude-0.9.0 )
+ odbc? ( dev-db/unixODBC )
+ >=sys-devel/libtool-1.4
+ inline? (
+ ~net-libs/libnet-1.0.2a
+ net-firewall/iptables
+ )"
+
+RDEPEND="${DEPEND}
+ dev-lang/perl
+ selinux? ( sec-policy/selinux-snort )"
+
+pkg_setup() {
+ enewgroup snort
+ enewuser snort -1 -1 /dev/null snort
+
+ if use flexresp && use flexresp2 ; then
+ ewarn
+ ewarn "You have both the 'flexresp' and 'flexresp2' USE"
+ ewarn "flags set. You can use 'flexresp' or 'flexresp2'"
+ ewarn "but not both."
+ ewarn
+ ewarn "Defaulting to flexresp2..."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PN}-2.6.1.2-libdir.patch"
+ epatch "${FILESDIR}/${PN}-2.8.2-libnet.patch"
+ sed -i "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort/rules:" \
+ etc/snort.conf
+
+ if use prelude ; then
+ sed -i -e "s:AC_PROG_RANLIB:AC_PROG_LIBTOOL:" configure.in
+ fi
+
+ einfo "Regenerating autoconf/automake files"
+ eautoreconf
+}
+
+src_compile() {
+ local myconf
+
+ if use flexresp2; then
+ myconf="${myconf} --enable-flexresp2"
+ elif use flexresp; then
+ myconf="${myconf} --enable-flexresp"
+ fi
+
+ if use react && ! use flexresp; then
+ myconf="${myconf} --enable-react"
+ fi
+
+ use gre && myconf="${myconf} --enable-gre"
+
+ myconf="${myconf} --with-libipq-includes=/usr/include/libipq"
+
+ econf \
+ --without-oracle \
+ $(use_with postgres postgresql) \
+ $(use_with mysql) \
+ $(use_with odbc) \
+ $(use_enable prelude) \
+ $(use_enable inline) \
+ $(use_enable dynamicplugin) \
+ $(use_enable timestats) \
+ $(use_enable perfprofiling) \
+ $(use_enable linux-smp-stats) \
+ ${myconf} || die "econf failed"
+
+ # limit to single as reported by jforman on irc
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ keepdir /var/log/snort/
+
+ dodoc doc/*
+ dodoc ./RELEASE.NOTES
+ docinto schemas ; dodoc schemas/*
+
+ insinto /etc/snort
+ doins etc/reference.config etc/classification.config \
+ etc/*.map etc/threshold.conf
+ use dynamicplugin || sed -i -e 's:^dynamic:# dynamic:g' etc/snort.conf
+ sed -e "s:/usr/local/lib:/usr/$(get_libdir):g" -e 's:/usr/local/:/usr/:g' \
+ etc/snort.conf > "${D}"/etc/snort/snort.conf.distrib
+
+ newinitd "${FILESDIR}/snort.rc8" snort
+ newconfd "${FILESDIR}/snort.confd" snort
+
+ fowners snort:snort /var/log/snort
+ fperms 0770 /var/log/snort
+
+ # install rules
+ insinto /etc/snort/rules
+ doins -r "${WORKDIR}"/rules/*
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "If you find that snort is using too much memory, your system"
+ ewarn "freezes, or snort crashes after a few minutes try adding the"
+ ewarn "following to your snort.conf..."
+ ewarn
+ ewarn "'config detection: searcp \ No newline at end of file
diff --git a/net-analyzer/wireshark/files b/net-analyzer/wireshark/files
index e2f17e4..c6ec53f 120000
--- a/net-analyzer/wireshark/files
+++ b/net-analyzer/wireshark/files
@@ -1 +1,123 @@
-/var/paludis/repositories/gentoo/net-analyzer/wireshark/files \ No newline at end of file
+/var/paludis/repositories/gentoo/net-analyzer/wireshark/filespps
+ newins image/${c}${d}-app-wireshark.png wireshark.png
+ done
+ done
+ insinto /usr/share/applications
+ doins wireshark.desktop
+ fi
+}
+
+pkg_postinst() {
+ echo
+ ewarn "With version 0.99.7, all function calls that require elevated privileges"
+ ewarn "have been moved out of the GUI to dumpcap. WIRESHARK CONTAINS OVER ONE"
+ ewarn "POINT FIVE MILLION LINES OF SOURCE CODE. DO NOT RUN THEM AS ROOT."
+ ewarn
+ ewarn "NOTE: To run wireshark as normal user you have to add yourself into"
+ ewarn "wireshark group. This security measure ensures that only trusted"
+ ewarn "users allowed to sniff your traffic."
+ echo
+}
+utls ares gcrypt zlib kerberos threads profile smi +pcap pcre +caps selinux"
+
+RDEPEND=">=dev-libs/glib-2.4.0:2
+ zlib? ( sys-libs/zlib )
+ smi? ( net-libs/libsmi )
+ gtk? ( >=x11-libs/gtk+-2.4.0:2
+ x11-libs/pango
+ dev-libs/atk )
+ gnutls? ( net-libs/gnutls )
+ gcrypt? ( dev-libs/libgcrypt )
+ pcap? ( net-libs/libpcap )
+ pcre? ( dev-libs/libpcre )
+ caps? ( sys-libs/libcap )
+ kerberos? ( virtual/krb5 )
+ portaudio? ( media-libs/portaudio )
+ ares? ( >=net-dns/c-ares-1.5 )
+ !ares? ( adns? ( net-libs/adns ) )
+ lua? ( >=dev-lang/lua-5.1 )
+ selinux? ( sec-policy/selinux-wireshark )"
+
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.15.0
+ dev-lang/perl
+ sys-devel/bison
+ sys-devel/flex"
+
+pkg_setup() {
+ if ! use gtk; then
+ ewarn "USE=-gtk will means no gui called wireshark will be created and"
+ ewarn "only command line utils are available"
+ fi
+
+ if use ares && use adns; then
+ einfo "You asked for both, ares and adns, but we can use only one of them."
+ einfo "c-ares supersedes adns resolver thus using c-ares (ares USE flag)."
+ myconf="$(use_with ares c-ares) --without-adns"
+ else
+ myconf="$(use_with adns) $(use_with ares c-ares)"
+ fi
+
+ # Add group for users allowed to sniff.
+ enewgroup wireshark
+}
+
+src_unpack() {
+ subversion_src_unpack
+
+ # our hardened toolchain bug...
+ cd "${S}"/epan
+# epatch "${FILESDIR}/wireshark-except-double-free.diff"
+
+ cd "${S}"
+# epatch "${FILESDIR}/wireshark-1.1.1-misc-warnings.patch"
+ # made dependent on lua as generally dissectors shouldn't depend on wiretap
+# use lua && epatch "${FILESDIR}/wireshark-1.1.1--as-needed.patch"
+# eautoreconf
+}
+
+src_compile() {
+ # optimization bug, see bug #165340, bug #40660
+ if [[ $(gcc-version) == 3.4 ]] ; then
+ elog "Found gcc 3.4, forcing -O3 into CFLAGS"
+ replace-flags -O? -O3
+ elif [[ $(gcc-version) == 3.3 || $(gcc-version) == 3.2 ]] ; then
+ elog "Found <=gcc-3.3, forcing -O into CFLAGS"
+ replace-flags -O? -O
+ fi
+
+ # see bug #133092; bugs.wireshark.org/bugzilla/show_bug.cgi?id=1001
+ # our hardened toolchain bug
+ filter-flags -fstack-protector
+
+ # profile and -fomit-frame-pointer are incompatible, bug #215806
+ use profile && filter-flags -fomit-frame-pointer
+
+ # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
+ # --with-ssl to ./configure. (Mimics code from acinclude.m4).
+ if use kerberos; then
+ case `krb5-config --libs` in
+ *-lcrypto*) myconf="${myconf} --with-ssl" ;;
+ esac
+ fi
+
+ # dumpcap requires libcap, setuid-install requires dumpcap
+ econf $(use_enable gtk wireshark) \
+ $(use_enable profile profile-build) \
+ $(use_with gnutls) \
+ $(use_with gcrypt) \
+ $(use_enable ipv6) \
+ $(use_enable threads) \
+ $(use_with lua) \
+ $(use_with kerberos krb5) \
+ $(use_with smi libsmi) \
+ $(use_with pcap) \
+ $(use_with zlib) \
+ $(use_with pcre) \
+ $(use_with portaudio) \
+ $(use_with caps libcap) \
+ $(use_enable pcap setuid-install) \
+ --sysconfdir=/etc/wireshark \
+ ${myconf}
+
+ ep \ No newline at end of file
diff --git a/net-im/centerim/files b/net-im/centerim/files
index 57fd4f6..214190e 120000
--- a/net-im/centerim/files
+++ b/net-im/centerim/files
@@ -1 +1,143 @@
-/var/paludis/repositories/gentoo/net-im/centerim/files \ No newline at end of file
+/var/paludis/repositories/gentoo/net-im/centerim/filesunder the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.11.4.ebuild,v 1.6 2008/01/24 20:23:28 angelos Exp $
+
+inherit multilib python eutils mercurial autotools
+
+DESCRIPTION="Jabber client written in PyGTK"
+HOMEPAGE="http://www.gajim.org/"
+SRC_URI=""
+
+EHG_REPO_URI="http://hg.gajim.org/gajim"
+
+S="${WORKDIR}/${PN}"
+
+
+LICENSE="GPL-2"
+SLOT=""
+KEYWORDS=""
+IUSE="avahi dbus gnome idle libnotify nls spell srv trayicon X xhtml"
+
+DEPEND="|| (
+ ( <dev-lang/python-2.5 dev-python/pysqlite )
+ >=dev-lang/python-2.5
+ )
+ dev-python/pygtk
+ sys-devel/gettext
+ dev-util/intltool
+ dev-util/pkgconfig"
+
+RDEPEND="gnome? ( dev-python/gnome-python-extras
+ dev-python/gnome-python-desktop
+ )
+ dbus? ( dev-python/dbus-python dev-libs/dbus-glib )
+ libnotify? ( x11-libs/libnotify )
+ xhtml? ( dev-python/docutils )
+ srv? ( net-dns/bind-tools )
+ idle? ( x11-libs/libXScrnSaver )
+ spell? ( app-text/gtkspell )
+ avahi? ( net-dns/avahi )
+ dev-python/pyopenssl"
+
+pkg_setup() {
+ if ! use dbus; then
+ if use libnotify; then
+ eerror "The dbus USE flag is required for libnotify support"
+ die "USE=\"dbus\" needed for libnotify support"
+ fi
+ if use avahi; then
+ eerror "The dbus USE flag is required for avahi support"
+ die "USE=\"dbus\" needed for avahi support"
+ fi
+ else
+ if has_version "<sys-apps/dbus-0.90" && ! built_with_use sys-apps/dbus python; then
+ eerror "Please rebuild dbus with USE=\"python\""
+ die "USE=\"python\" needed for dbus"
+ fi
+ fi
+
+ if use avahi; then
+ if ! built_with_use net-dns/avahi dbus gtk python; then
+ eerror "The following USE flags are required for correct avahi"
+ eerror "support: dbus gtk python"
+ die "Please rebuild avahi with these use flags enabled."
+ fi
+ fi
+
+ if has_version ">=dev-lang/python-2.5" && ! built_with_use dev-lang/python sqlite; then
+ eerror "Please rebuild python with USE=\"sqlite\""
+ die "USE=\"sqlite\" needed for python"
+ fi
+}
+
+src_unpack() {
+ mercurial_src_unpack
+ #eautoreconf
+ cd "${S}"
+ ./autogen.sh
+ #epatch "${FILESDIR}/${P}-test_fix.patch"
+}
+
+src_compile() {
+ local myconf
+
+ if ! use gnome; then
+ myconf="${myconf} $(use_enable trayicon)"
+ myconf="${myconf} $(use_enable idle)"
+ fi
+
+ econf $(use_enable nls) \
+ $(use_enable spell gtkspell) \
+ $(use_enable dbus remote) \
+ $(use_with X x) \
+ --docdir="/usr/share/doc/${PF}" \
+ --prefix="/usr" \
+ --libdir="/usr/$(get_libdir)" \
+ ${myconf} || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ rm "${D}/usr/share/doc/${PF}/README.html"
+ dohtml README.html
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/gajim/
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/gajim/
+}
+}
+mod_vroot.html doc/
+fi
+
+# Fix bug #218850
+#epatch "${FILESDIR}/${P}-bug218850.patch"
+
+# Fix bug #221275
+# extract custom PR_ macros from aclocal.m4 to acinclude.m4
+# and delete the provided aclocal.m4 before running autoreconf
+elog "Extract custom m4 macros from aclocal.m4..."
+cat aclocal.m4 | head -n188 > acinclude.m4
+rm -f aclocal.m4
+
+eautoreconf
+}
+
+src_compile() {
+addpredict /etc/krb5.conf
+local modules myconf
+
+modules="mod_ratio:mod_readme"
+use acl && modules="${modules}:mod_facl"
+use ban && modules="${modules}:mod_ban"
+use case && modules="${modules}:mod_case"
+use clamav && modules="${modules}:mod_clamav"
+use deflate && modules="${modules}:mod_deflate"
+use pam && modules="${modules}:mod_auth_pam"
+use radius && modules="${modules}:mod_radius"
+use rewrite && modules="${modules}:mod_rewp \ No newline at end of file
diff --git a/net-misc/tor/files b/net-misc/tor/files
index 455484a..f0dbd7a 120000
--- a/net-misc/tor/files
+++ b/net-misc/tor/files
@@ -1 +1,153 @@
-/var/paludis/repositories/gentoo/net-misc/tor/files \ No newline at end of file
+/var/paludis/repositories/gentoo/net-misc/tor/filesed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.2.0.31.ebuild,v 1.6 2008/11/14 12:43:56 fmccor Exp $
+
+inherit eutils subversion
+
+DESCRIPTION="Anonymizing overlay network for TCP"
+HOMEPAGE="http://tor.eff.org"
+MY_PV=${PV/_/-}
+SRC_URI=""
+S="${WORKDIR}/${P/_/}"
+
+ESVN_REPO_URI="https://svn.torproject.org/svn/tor/trunk/"
+ESVN_STORE_DIR="${DISTDIR}/svn-src"
+ESVN_PROJECT="${PN/-svn}"
+ESVN_BOOTSTRAP="./autogen.sh"
+
+
+
+LICENSE="BSD"
+SLOT=""
+KEYWORDS="~amd64 ppc ppc64 ~sparc x86 ~x86-fbsd"
+IUSE="debug logrotate"
+
+DEPEND="dev-libs/openssl
+ >=dev-libs/libevent-1.2"
+RDEPEND="${DEPEND}
+ net-proxy/tsocks"
+
+pkg_setup() {
+ enewgroup tor
+ enewuser tor -1 -1 /var/lib/tor tor
+}
+
+src_unpack() {
+# unpack ${A}
+ subversion_src_unpack
+ cd "${S}"
+ epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch
+ epatch "${FILESDIR}"/${PN}-0.2.0.30-logrotate.patch
+}
+
+src_compile() {
+ econf $(use_enable debug)
+ emake || die
+}
+
+src_install() {
+ newinitd "${FILESDIR}"/tor.initd-r4 tor
+ emake DESTDIR="${D}" install || die
+ keepdir /var/{lib,log,run}/tor
+
+ dodoc README ChangeLog AUTHORS ReleaseNotes \
+ doc/{HACKING,TODO} \
+ doc/spec/*.txt
+
+ fperms 750 /var/lib/tor /var/log/tor
+ fperms 755 /var/run/tor
+ fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor
+
+ if use logrotate; then
+ sed -e "s:/lib::" \
+ -e "s:/rc.d::" \
+ -e "s:\\*:\\*.:" \
+ -e "s:sharedscripts:create 0640 tor tor\n\tsharedscripts:" -i contrib/tor.logrotate || die
+ insinto /etc/logrotate.d
+ newins contrib/tor.logrotate tor
+ fi
+}
+
+pkg_postinst() {
+ elog "You must create /etc/tor/torrc, you can use the sample that is in that directory"
+ elog "To have privoxy and tor working together you must add:"
+ elog "forward-socks4a / localhost:9050 ."
+ elog "(notice the . at the end of the line)"
+ elog "to /etc/privoxy/config"
+}
+)
+ sys-devel/bison
+ sys-devel/flex"
+
+src_unpack() {
+ git_src_unpack
+ cd ${S}
+# epatch ${FILESDIR}/bits.patch
+# epatch ${FILESDIR}/wined3d.diff
+# useq pulseaudio && epatch ${FILESDIR}/winepulse-0.28.patch
+# useq pulseaudio && epatch ${FILESDIR}/winepulse-0.17-configure.ac.patch
+# useq pulseaudio && epatch ${FILESDIR}/adding-pulseaudio-to-winecfg.patch
+ eautoreconf
+}
+
+src_prepare() {
+ sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
+ sed -i '/^MimeType/d' tools/wine.desktop || die #117785
+}
+
+src_configure() {
+ export LDCONFIG=/bin/true
+
+
+ # XXX: should check out these flags too:
+ # audioio capi fontconfig freetype gphoto
+ econf \
+ --sysconfdir=/etc/wine \
+ $(use_with alsa) \
+ $(use_with cups) \
+ $(use_with esd) \
+ $(use_with gnutls) \
+ $(use_with hal) \
+ $(use_with dbus) \
+ $(use_with jack) \
+ $(use_with jpeg) \
+ $(use_with lcms cms) \
+ $(use_with ldap) \
+ $(use_with nas) \
+ $(use_with ncurses curses) \
+ $(use_with opengl) \
+ $(use_with oss) \
+ $(use_with png) \
+ $(use_with scanner sane) \
+ $(use_with ssl openssl) \
+ $(use_with X x) \
+ $(use_with xcomposite) \
+ $(use_with xinerama) \
+ $(use_with xml) \
+ $(use_with xml xslt) \
+ || die "configure failed"
+
+ emake -j1 depend || die "depend"
+}
+
+src_compile() {
+ emake all || die "all"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc ANNOUNCE AUTHORS README
+ if use gecko ; then
+ insinto /usr/share/wine/gecko
+ doins "${DISTDIR}"/wine_gecko-${GV}.cab || die
+ fi
+}
+bdir)/gimp/2.0/plug-ins
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
+ /usr/$(get_libdir)/gimp/2.0/plug-ins
+}
+ty p \ No newline at end of file
diff --git a/sys-fs/e2fsprogs/files b/sys-fs/e2fsprogs/files
index 85b5973..e006e95 120000
--- a/sys-fs/e2fsprogs/files
+++ b/sys-fs/e2fsprogs/files
@@ -1 +1,153 @@
-/var/paludis/repositories/gentoo/sys-fs/e2fsprogs/files \ No newline at end of file
+/var/paludis/repositories/gentoo/sys-fs/e2fsprogs/filesnder the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/genshi/genshi-0.5.1.ebuild,v 1.5 2008/11/16 17:46:16 maekke Exp $
+
+NEED_PYTHON=2.3
+
+inherit distutils subversion
+
+MY_P="Genshi-${PV}"
+
+DESCRIPTION="Python toolkit for stream-based generation of output for the web."
+HOMEPAGE="http://genshi.edgewall.org/"
+SRC_URI=""
+
+ESVN_REPO_URI="http://svn.edgewall.org/repos/genshi/trunk"
+
+LICENSE="BSD"
+SLOT=""
+KEYWORDS="amd64 ppc ~ppc64 ~sparc x86"
+IUSE="doc examples"
+
+DEPEND="dev-python/setuptools"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ subversion_src_unpack
+ cd ${S}
+ rm setup.cfg
+ epatch ${FILESDIR}/version_info.patch
+}
+
+src_install() {
+ distutils_src_install
+
+ if use doc ; then
+ dodoc doc/*.txt
+ dohtml -r doc/*
+ fi
+
+ if use examples ; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}
+
+src_test() {
+ "${python}" setup.py test || die "test failed"
+}
+ibs/jpeg )
+ sdl? ( media-libs/libsdl )
+ vorbis? ( media-libs/libogg
+ media-libs/libvorbis )
+ truetype? ( >=media-libs/freetype-2.1 )
+ alsa? ( media-libs/alsa-lib )
+ mng? ( media-libs/libmng )
+ png? ( media-libs/libpng )
+ wxwindows? ( x11-libs/pango
+ =x11-libs/wxGTK-2.6* )
+ javascript? ( dev-lang/spidermonkey )
+ cegui? ( >=dev-games/cegui-0.5.0 )
+ x11-libs/libXaw
+ x11-libs/libXxf86vm"
+DEPEND="${RDEPEND}
+ 3ds? ( media-libs/lib3ds )
+ java? ( dev-java/ant-core
+ >=virtual/jdk-1.5 )
+ dev-util/ftjam
+ dev-lang/swig
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+# unpack ${A}
+ subversion_src_unpack
+ cd "${S}"
+ # Installing doc conflict with dodoc on src_install
+ # Removing conflicting target
+ sed -i -e "/^InstallDoc/d" \
+ Jamfile.in \
+ docs/Jamfile \
+ || die "sed failed"
+}
+
+src_compile() {
+ if useq wxwindows; then
+ WX_GTK_VER=2.6
+ need-wxwidgets gtk2
+ fi
+
+ # -O3 is hanging compilation of python script plugin
+ # trying -O2 just in case
+ replace-flags -O3 -O2
+ econf --enable-cpu-specific-optimizations=no \
+ --disable-separate-debug-info \
+ --without-lcms \
+ --without-caca \
+ --without-bullet \
+ --without-openal \
+ --without-jackasyn \
+ --without-mikmod \
+ --disable-make-emulation \
+ $(use_with perl) \
+ $(use_with python) \
+ $(use_with java) \
+ $(use_with png) \
+ $(use_with jpeg) \
+ $(use_with mng) \
+ $(use_with vorbis) \
+ $(use_with 3ds) \
+ $(use_with ode) \
+ $(use_with truetype freetype2) \
+ $(use_with cal3d) \
+ $(use_with sdl) \
+ $(use_with wxwindows wx) \
+ $(use_with cegui CEGUI) \
+ $(use_with cg Cg) \
+ $(use_with javascript js) \
+ $(use_with alsa asound)
+ #remove unwanted CFLAGS added by ./configure
+ sed -i -e '/COMPILER\.CFLAGS\.optimize/d' \
+ Jamconfig \
+ || die "sed failed"
+ jam -q || die "compile failed"
+}
+
+src_install() {
+ for installTarget in install_bin install_plugin install_lib \
+ install_include install_data install_config
+ do
+ jam -q -s DESTDIR="${D}" ${installTarget} \
+ || die "jam ${installTarget} failed"
+ done
+ if use doc; then
+ jam -q -s DESTDIR="${D}" install_doc || die "jam install_doc failed"
+ fi
+ dodoc README docs/history* docs/todo_*
+
+ echo "CRYSTAL_PLUGIN=/usr/$(get_libdir)/${P}" > 90crystalspace
+ echo "CRYSTAL_CONFIG=/etc/${P}" >> 90crystalspace
+ doenvd 90crystalspace
+}
+
+pkg_postinst() {
+ elog "Examples coming with this package, need correct light calculation"
+ elog "Do the following commands, with the root account, to fix that:"
+ # Fill cache directory for the examples
+ local dir
+ for dir in castle flarge isomap parallaxtest partsys r3dtest stenciltest \
+ terrain terrainf;
+ do
+ elog "p \ No newline at end of file
diff --git a/www-apps/trac/files b/www-apps/trac/files
index 63d9929..4cbc66e 120000
--- a/www-apps/trac/files
+++ b/www-apps/trac/files
@@ -1 +1,145 @@
-/var/paludis/repositories/gentoo/www-apps/trac/files \ No newline at end of file
+/var/paludis/repositories/gentoo/www-apps/trac/files webapp_postinst_txt ${lang} "${FILESDIR}"/postinst-${lang}.txt
+ webapp_postupgrade_txt ${lang} "${FILESDIR}"/postupgrade-${lang}.txt
+ done
+
+ webapp_src_install
+}
+herit distutils webapp subversion
+
+MY_PV=${PV/_beta/b}
+MY_P=Trac-${MY_PV}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
+HOMEPAGE="http://trac.edgewall.com/"
+LICENSE="trac"
+SRC_URI=""
+
+IUSE="cgi fastcgi mysql multirepos postgres sqlite subversion"
+
+if use multirepos ; then
+ ESVN_REPO_URI="http://svn.edgewall.com/repos/trac/sandbox/multirepos"
+ ESVN_PROJECT="${PN/-multirepos-svn}"
+else
+ ESVN_REPO_URI="http://svn.edgewall.org/repos/trac/trunk"
+ ESVN_PROJECT="${PN/-svn}"
+fi
+ESVN_STORE_DIR="${DISTDIR}/svn-src"
+#ESVN_BOOTSTRAP="./reconf"
+
+S="${WORKDIR}/${P/_/}"
+
+
+
+
+KEYWORDS="~x86 ~amd64"
+
+# doing so because tools, python packages... overlap
+SLOT=""
+WEBAPP_MANUAL_SLOT="yes"
+
+DEPEND="
+ ${DEPEND}
+ dev-python/setuptools
+ "
+
+RDEPEND="
+ ${RDEPEND}
+ >=dev-python/genshi-0.6
+ dev-python/pygments
+ >=dev-python/docutils-0.3.9
+ dev-python/pytz
+ cgi? (
+ virtual/httpd-cgi
+ )
+ fastcgi? (
+ virtual/httpd-fastcgi
+ )
+ mysql? (
+ >=dev-python/mysql-python-1.2.1
+ >=virtual/mysql-4.1
+ )
+ postgres? (
+ >=dev-python/psycopg-2
+ )
+ sqlite? (
+ >=dev-db/sqlite-3.3.4
+ || (
+ >=dev-lang/python-2.5
+ >=dev-python/pysqlite-2.3.2
+ )
+ )
+ subversion? (
+ >=dev-util/subversion-1.4.2
+ )
+ !www-apps/trac-webadmin
+ "
+
+# The following function should be added to eutils.eclass (see bug #143572):
+
+# Generate an standard error message for missing USE flags
+# in existing packages, and die.
+#
+# Usage: built_with_use_die <category/package> <functionality> [<USE flag>]
+# ex: built_with_use_die dev-util/subversion python
+# or: built_with_use_die www-servers/apache LDAP ldap
+#
+# Typical usage:
+# if ! built_with_use dev-util/subversion python ; then
+# built_with_use_die dev-util/subversion python
+# fi
+#
+# Note: when <USE flag> is not specified, <functionality> is used for the USE flag name.
+built_with_use_die() {
+ local package=$1
+ local func=$2
+ local use_flag=$3
+
+ [[ -z ${use_flag} ]] && use_flag=${func}
+
+ eerror "Your ${package} package has been built without"
+ eerror "${func} support, please enable the '${use_flag}' USE flag and"
+ eerror "re-emerge ${package}."
+ elog "You can enable this USE flag either globally in /etc/make.conf,"
+ elog "or just for specific packages in /etc/portage/package.use."
+ die "${package} missing ${func} support"
+}
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ if ! use mysql && ! use postgres && ! use sqlite ; then
+ eerror "You must select at least one database backend, by enabling"
+ eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
+ die "no database backend selected"
+ fi
+
+ # python has built-in sqlite support starting from 2.5
+ if use sqlite && \
+ has_version ">=dev-lang/python-2.5" && \
+ ! has_version ">=dev-python/pysqlite-2.3" && \
+ ! built_with_use dev-lang/python sqlite ; then
+ eerror "To use the sqlite database backend, you must either:"
+ eerror "- build dev-lang/python with sqlite support, using the 'sqlite'"
+ eerror " USE flag, or"
+ eerror "- emerge dev-python/pysqlite"
+ die "missing python sqlite support"
+ fi
+
+ if use subversion && \
+ ! built_with_use dev-util/subversion python ; then
+ built_with_use_die dev-util/subversion python
+ fi
+
+ enewgroup tracd
+ enewuser tracd -1 -1 -1 tracd
+}
+
+src_upack(){
+ subversion_src_unpack
+ cd ${S}
+}
+
+src_install() {
+ webapp_src_preinst
+ distutils_src_insp \ No newline at end of file
diff --git a/x11-drivers/nvidia-drivers/Manifest b/x11-drivers/nvidia-drivers/Manifest
new file mode 100644
index 0000000..a40d6a7
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/Manifest
@@ -0,0 +1,19 @@
+AUX 09nvidia 61 RMD160 b69c3282ba6195112e312fe34bdcb12544aef8ca SHA1 05dd043f66f53409dfe511636d92a339edb4c765 SHA256 14702d6726cc9f0ad832a3cc90059999eb956f9e3a35397cb63cfa6347b33e39
+AUX NVIDIA_glx-defines.patch 437 RMD160 7cc38de0663c51d9e3718f02035a940a5d31e53c SHA1 eef9bcae32d4e00133b205e27ce766488d5c6cdb SHA256 0007f3d962edb87da4788ce58869679c1b10f28223a6bf1c23696fede57305da
+AUX NVIDIA_glx-glheader.patch 380 RMD160 ee9a10cfbed10d5711f58a80553ffebeea5853bf SHA1 72abfedb9dfb7dae7dc23a5701d3e00282fef2c0 SHA256 f630e24067bf6199a64f8fe8c5d6fc158cb4b153bda65ffc3f97b36a9cb08faf
+AUX NVIDIA_glx-makefile.patch 602 RMD160 6c92e177c7a551ee43dc9bb0a58790d18497fef4 SHA1 cea7e59f91b0baa41d980a07de92d7dcde4baa77 SHA256 074d041899563641d65bf257b3835fe5aea9e7220af24830d96d1183cd18392e
+AUX NVIDIA_i2c-hwmon.patch 669 RMD160 812e7081d8f31116031edb0d8eb9c570b09caf89 SHA1 b0f132851cb1a7d8bdd9f205b4f187fcaf9e87d8 SHA256 0aaa05e1167bd722e00fcb90bd9853413ceb4ce3b00b308c314330f47c82f21a
+AUX drm_agp_memory-2.6.31.patch 1441 RMD160 82af3a412c9a77f2bfdb19352898b40dfa9283b0 SHA1 874bb3eb6248050f526e89af812ebaf4b1d9b42f SHA256 3fb1ed743e9575f2323b4308ed204f8a8f5256c3ef61bdd9080cfa330c320674
+AUX eblits/donvidia.eblit 579 RMD160 28991c7d0c49b0b832e0e11e4015d8f4f739be23 SHA1 4a33a4026f68a5d140f056be40271adc576a1b08 SHA256 9648843e17a6e3d326a073202e52171cec4d2e57f652cf50f21379bfd0329a5b
+AUX eblits/mtrr_check.eblit 511 RMD160 8130848fe6273f386e5d931115807fed17f21450 SHA1 faafae4a0d80dae0af0abad6d8f8766e23847a63 SHA256 f4af39e141a1993b4bee716f4cd5ec20a3837baa27a841a2744f531dba811e08
+AUX eblits/paravirt_check.eblit 545 RMD160 e27400bf5df773b6f08695ea6c498f8f69068c7f SHA1 fcdacd4a01b3d4f58dc0de915c9e9fabc3701e69 SHA256 61be58b743ffe26653524c4ee4579d4aee46eb14825c013e37ecd4cbf232dd87
+AUX eblits/src_install-libs.eblit 3347 RMD160 70373478a3effeacbbd0b0838f8884c0a285b323 SHA1 b72276c9e85f5a5454d221293dbfbaebe5969716 SHA256 17bb3fccde3b059900f4936598b5110158d77746c2bc791e80d40908872d01d4
+AUX eblits/want_tls.eblit 836 RMD160 9a91c258e47f08076461b65dd048c7f207f3b728 SHA1 65f8af55bef11185607da241e029a7ad0290032a SHA256 a2ad8cad98d1b2a45fbf6cdc25755767546ceca0badc2d0853698a75af8f016e
+AUX libGL.la-r2 733 RMD160 479612ab30c04ca0683c7d9edaf9ab3de783e4a9 SHA1 88656b7e7234ade4f5564373fd6eb5c040167655 SHA256 4856e7a2c31763ade41c93a395f3e80a2705ac2ab4dbd73e5161cdba132f407b
+AUX nvidia 1510 RMD160 ca0d0e5375109d9edf682d9bdda743b7c693e4d4 SHA1 85cf9bff167dcc063ba61426523973e9598085f7 SHA256 b193cc3f6d6f39138720a2282d9f161fc8f2e8a15bc43d183a30eb879add06c5
+AUX nvidia-169.07 639 RMD160 8baddb6fd1bf7f0e2688870a78e8ace051d62e3f SHA1 b30487ba2a24a6b1359d1fd831eeb1705060953c SHA256 a8c4860f008d53776fda7a17b59524f271236559af688e9a2c9845cbbcba1577
+DIST NVIDIA-FreeBSD-x86-185.18.14.tar.gz 19221783 RMD160 6865a8a4c7e24f671cac52d45999b657e950e86f SHA1 a7c87d70fc537dbabed6a0098dd57f7de4d3027d SHA256 d81b392505478d83e23f7b23cc2f2b4c808896bad9317417fa69c405b76db956
+DIST NVIDIA-Linux-x86-185.18.14-pkg0.run 14125083 RMD160 27b07a055ed85d6da0010725013c2be3331d8634 SHA1 0bdf22ecb9e50d0a4272c91c1f53bcebcc736a1c SHA256 c569da0d06067a3dffacb193f1b7c4d19c8440e4f9370a62d63ba29cc438f760
+DIST NVIDIA-Linux-x86_64-185.18.14-pkg2.run 22211696 RMD160 c304d60350f6961a883b5cc860dd2baa821b21fc SHA1 7b7c41028247070c24f5088a028f07fe910e4023 SHA256 44dd422544a3ac512769be27d9999a1a8b73bac6197dedc18bc0bc764049a198
+EBUILD nvidia-drivers-185.18.14.ebuild 17284 RMD160 5ececca09c4d6402f5ebad151373926c31d8dbb4 SHA1 fd22f4d69a9fbb4f074db550bd4f82d781d5c701 SHA256 05be84d19c09af45e7dd49b904d33342b76b962a9b972f0c07894c97b969a4da
+MISC nvidia-drivers-185.18.14.ebuild~ 17358 RMD160 ccc36fffdc382daa2717ef39b3f5634dd9df6193 SHA1 e0c68a7ab3d05d6e999bbfbd08e004e2b1577e3a SHA256 a9b02f7da2c200175cb9201dfd2c40ed9e9a586c7fa65f163a0febd388452dd3
diff --git a/x11-drivers/nvidia-drivers/files/09nvidia b/x11-drivers/nvidia-drivers/files/09nvidia
new file mode 100644
index 0000000..1fcbef4
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/09nvidia
@@ -0,0 +1,2 @@
+# Has to precede X11's own libraries!
+LDPATH=/opt/nvidia/lib
diff --git a/x11-drivers/nvidia-drivers/files/NVIDIA_glx-defines.patch b/x11-drivers/nvidia-drivers/files/NVIDIA_glx-defines.patch
new file mode 100644
index 0000000..da9933f
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/NVIDIA_glx-defines.patch
@@ -0,0 +1,11 @@
+diff -ur NVIDIA_GLX-1.0-4191/usr/include/GL/glx.h NVIDIA_GLX-1.0-4191.new/usr/include/GL/glx.h
+--- NVIDIA_GLX-1.0-4191/usr/include/GL/glx.h 2002-12-09 21:26:55.000000000 +0100
++++ NVIDIA_GLX-1.0-4191.new/usr/include/GL/glx.h 2003-01-30 18:20:23.000000000 +0100
+@@ -39,6 +39,7 @@
+ typedef XID GLXPixmap;
+ typedef XID GLXDrawable;
+ typedef XID GLXPbuffer;
++typedef XID GLXPbufferSGIX;
+ typedef XID GLXWindow;
+ typedef XID GLXFBConfigID;
+
diff --git a/x11-drivers/nvidia-drivers/files/NVIDIA_glx-glheader.patch b/x11-drivers/nvidia-drivers/files/NVIDIA_glx-glheader.patch
new file mode 100644
index 0000000..e0393e1
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/NVIDIA_glx-glheader.patch
@@ -0,0 +1,13 @@
+--- usr/include/GL/gl.g.orig 2004-07-17 19:56:59.789410584 +1000
++++ usr/include/GL/gl.h 2004-07-17 19:59:08.844791184 +1000
+@@ -66,6 +66,10 @@
+ typedef double GLclampd;
+ typedef void GLvoid;
+
++/* Patching for some better defines in the global system */
++#ifndef GL_GLEXT_LEGACY
++#include <GL/glext.h>
++#endif
+
+ /*************************************************************/
+
diff --git a/x11-drivers/nvidia-drivers/files/NVIDIA_glx-makefile.patch b/x11-drivers/nvidia-drivers/files/NVIDIA_glx-makefile.patch
new file mode 100644
index 0000000..45e550b
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/NVIDIA_glx-makefile.patch
@@ -0,0 +1,15 @@
+--- Makefile.old 2004-11-10 12:13:57.751853304 +1100
++++ Makefile 2004-11-10 12:14:22.439100272 +1100
+@@ -1,11 +1,5 @@
+ default:
+- @ echo
+- @ echo "It is NOT recommended that you use this Makefile to install"
+- @ echo "the NVIDIA driver. Instead, please use the nvidia-installer"
+- @ echo "utility. However, should nvidia-installer not operate for you,"
+- @ echo "you may use this Makefile as a last resort. To install using"
+- @ echo "this Makefile, please run 'make install'."
+- @ echo
++ @ echo "Gentoo Linux does not use nvidia-installer."
+
+ kernel_module_install:
+ cd usr/src/nv; make install
diff --git a/x11-drivers/nvidia-drivers/files/NVIDIA_i2c-hwmon.patch b/x11-drivers/nvidia-drivers/files/NVIDIA_i2c-hwmon.patch
new file mode 100644
index 0000000..f9fdc27
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/NVIDIA_i2c-hwmon.patch
@@ -0,0 +1,17 @@
+---
+ usr/src/nv/nv-i2c.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- NVIDIA-Linux-x86-1.0-9746-pkg1.orig/usr/src/nv/nv-i2c.c 2006-12-15 19:32:58.000000000 +0100
++++ NVIDIA-Linux-x86-1.0-9746-pkg1/usr/src/nv/nv-i2c.c 2007-01-06 16:50:48.000000000 +0100
+@@ -250,6 +250,10 @@ void* NV_API_CALL nv_i2c_add_adapter(nv_
+ snprintf(pI2cAdapter->name, I2C_NAME_SIZE,
+ "NVIDIA i2c adapter %u at %x:%02x.%u", port, nv->bus,
+ nv->slot, PCI_FUNC(nvl->dev->devfn));
++#ifdef I2C_CLASS_HWMON
++ if (port == 2)
++ pI2cAdapter->class = I2C_CLASS_HWMON;
++#endif
+
+ // add our data to the structure
+ pI2cAdapter->algo_data = (void *)nv;
diff --git a/x11-drivers/nvidia-drivers/files/drm_agp_memory-2.6.31.patch b/x11-drivers/nvidia-drivers/files/drm_agp_memory-2.6.31.patch
new file mode 100644
index 0000000..0a3d7f6
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/drm_agp_memory-2.6.31.patch
@@ -0,0 +1,33 @@
+diff -rupN nvidia-185.18.14.orig/nv-i2c.c nvidia-185.18.14.new/nv-i2c.c
+--- nvidia-185.18.14.orig/nv-i2c.c 2009-06-30 15:11:50.000000000 +0100
++++ nvidia-185.18.14.new/nv-i2c.c 2009-06-30 15:41:23.000000000 +0100
+@@ -218,8 +218,6 @@ struct i2c_adapter nv_i2c_adapter_protot
+ #if defined(NV_I2C_ADAPTER_HAS_DEC_USE)
+ .dec_use = nv_i2c_adapter_dec_use,
+ #endif
+- .client_register = nv_i2c_adapter_register_client,
+- .client_unregister = nv_i2c_adapter_unregister_client,
+ .data = NULL,
+ };
+
+@@ -241,8 +239,6 @@ struct i2c_adapter nv_i2c_adapter_protot
+ .owner = THIS_MODULE,
+ .algo = &nv_i2c_algo,
+ .algo_data = NULL,
+- .client_register = nv_i2c_adapter_register_client,
+- .client_unregister = nv_i2c_adapter_unregister_client,
+ };
+
+ #endif // defined(KERNEL_2_4)
+diff -rupN nvidia-185.18.14.orig/os-agp.c nvidia-185.18.14.new/os-agp.c
+--- nvidia-185.18.14.orig/os-agp.c 2009-06-30 15:11:50.000000000 +0100
++++ nvidia-185.18.14.new/os-agp.c 2009-06-30 15:12:58.000000000 +0100
+@@ -293,7 +293,7 @@ RM_STATUS KernLoadAGPPages(
+ {
+ nv_pte_t *page_ptr = at->page_table[i];
+
+- page_ptr->phys_addr = (ptr->memory[i] & PAGE_MASK);
++ page_ptr->phys_addr = (page_to_phys(ptr->pages[i]) & PAGE_MASK);
+ page_ptr->virt_addr = (unsigned long) __va(page_ptr->phys_addr);
+ page_ptr->dma_addr = page_ptr->phys_addr;
+ }
diff --git a/x11-drivers/nvidia-drivers/files/eblits/donvidia.eblit b/x11-drivers/nvidia-drivers/files/eblits/donvidia.eblit
new file mode 100644
index 0000000..b61bcf4
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/eblits/donvidia.eblit
@@ -0,0 +1,21 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+# Install nvidia library:
+# the first parameter is the place where to install it
+# the second parameter is the base name of the library
+# the third parameter is the provided soversion
+donvidia() {
+ dodir $1
+ exeinto $1
+
+ libname=$(basename $2)
+
+ # libnvidia-cfg.so is no longer supplied in lib32; step over it gracefully
+ if [ -e $2.$3 ] ; then
+ doexe $2.$3
+ dosym ${libname}.$3 $1/${libname}
+ [[ $3 != "1" ]] && dosym ${libname}.$3 $1/${libname}.1
+ fi
+}
diff --git a/x11-drivers/nvidia-drivers/files/eblits/mtrr_check.eblit b/x11-drivers/nvidia-drivers/files/eblits/mtrr_check.eblit
new file mode 100644
index 0000000..a05c10d
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/eblits/mtrr_check.eblit
@@ -0,0 +1,19 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+mtrr_check() {
+ ebegin "Checking for MTRR support"
+ linux_chkconfig_present MTRR
+ eend $?
+
+ if [[ $? -ne 0 ]] ; then
+ eerror "Please enable MTRR support in your kernel config, found at:"
+ eerror
+ eerror " Processor type and features"
+ eerror " [*] MTRR (Memory Type Range Register) support"
+ eerror
+ eerror "and recompile your kernel ..."
+ die "MTRR support not detected!"
+ fi
+}
diff --git a/x11-drivers/nvidia-drivers/files/eblits/paravirt_check.eblit b/x11-drivers/nvidia-drivers/files/eblits/paravirt_check.eblit
new file mode 100644
index 0000000..dc48837
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/eblits/paravirt_check.eblit
@@ -0,0 +1,20 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+paravirt_check() {
+ ebegin "Checking for Paravirtualized guest support"
+ linux_chkconfig_present PARAVIRT
+
+ if [[ $? -eq 0 ]]; then
+ eerror "Please disable PARAVIRT in your kernel config, found at:"
+ eerror
+ eerror " Processor type and features"
+ eerror " [*] Paravirtualized guest support"
+ eerror
+ eerror "or XEN support"
+ eerror
+ eerror "and recompile your kernel .."
+ die "PARAVIRT support detected!"
+ fi
+}
diff --git a/x11-drivers/nvidia-drivers/files/eblits/src_install-libs.eblit b/x11-drivers/nvidia-drivers/files/eblits/src_install-libs.eblit
new file mode 100644
index 0000000..48b189c
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/eblits/src_install-libs.eblit
@@ -0,0 +1,116 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distribnuted under the terms of the GNU General Public License v2
+# $Header: $
+
+src_install-libs() {
+ local pkglibdir=lib
+ local inslibdir=$(get_libdir)
+
+ if [[ ${#} -eq 2 ]] ; then
+ pkglibdir=${1}
+ inslibdir=${2}
+ elif has_multilib_profile && [[ ${ABI} == "x86" ]] ; then
+ pkglibdir=lib32
+ fi
+
+ local usrpkglibdir=usr/${pkglibdir}
+ local libdir=usr/X11R6/${pkglibdir}
+ local drvdir=${libdir}/modules/drivers
+ local extdir=${libdir}/modules/extensions
+ local incdir=usr/include/GL
+ local sover=${PV}
+ local NV_ROOT="/usr/${inslibdir}/opengl/nvidia"
+ local NO_TLS_ROOT="${NV_ROOT}/no-tls"
+ local TLS_ROOT="${NV_ROOT}/tls"
+ local X11_LIB_DIR="/usr/${inslibdir}/xorg"
+
+ if use x86-fbsd; then
+ # on FreeBSD everything is on obj/
+ pkglibdir=obj
+ usrpkglibdir=obj
+ x11pkglibdir=obj
+ drvdir=obj
+ extdir=obj
+
+ # don't ask me why the headers are there.. glxext.h is missing
+ incdir=doc
+
+ # on FreeBSD it has just .1 suffix
+ sover=1
+ fi
+
+ # The GLX libraries
+ donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libGL.so ${sover}
+ donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libGLcore.so ${sover}
+
+ donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libnvidia-cfg.so ${sover}
+
+ dodir ${NO_TLS_ROOT}
+ donvidia ${NO_TLS_ROOT} ${usrpkglibdir}/libnvidia-tls.so ${sover}
+
+ if ! use x86-fbsd; then
+ donvidia ${TLS_ROOT} ${usrpkglibdir}/tls/libnvidia-tls.so ${sover}
+ fi
+
+ if want_tls ; then
+ dosym ../tls/libnvidia-tls.so ${NV_ROOT}/lib
+ dosym ../tls/libnvidia-tls.so.1 ${NV_ROOT}/lib
+ dosym ../tls/libnvidia-tls.so.${sover} ${NV_ROOT}/lib
+ else
+ dosym ../no-tls/libnvidia-tls.so ${NV_ROOT}/lib
+ dosym ../no-tls/libnvidia-tls.so.1 ${NV_ROOT}/lib
+ dosym ../no-tls/libnvidia-tls.so.${sover} ${NV_ROOT}/lib
+ fi
+
+ if ! use x86-fbsd; then
+ # Install the .la file for libtool, to prevent e.g. bug #176423
+ [ -f "${FILESDIR}/libGL.la-r2" ] || die "libGL.la-r2 missing in FILESDIR"
+ local ver1=$(get_version_component_range 1)
+ local ver2=$(get_version_component_range 2)
+ local ver3=$(get_version_component_range 3)
+ sed -e "s:\${PV}:${PV}:" \
+ -e "s:\${ver1}:${ver1}:" \
+ -e "s:\${ver2}:${ver2}:" \
+ -e "s:\${ver3}:${ver3}:" \
+ -e "s:\${libdir}:${inslibdir}:" \
+ "${FILESDIR}"/libGL.la-r2 > "${D}"/${NV_ROOT}/lib/libGL.la
+ fi
+
+ exeinto ${X11_LIB_DIR}/modules/drivers
+
+ [[ -f ${drvdir}/nvidia_drv.so ]] && \
+ doexe ${drvdir}/nvidia_drv.so
+
+ insinto /usr/${inslibdir}
+ [[ -f ${libdir}/libXvMCNVIDIA.a ]] && \
+ doins ${libdir}/libXvMCNVIDIA.a
+ exeinto /usr/${inslibdir}
+ # fix Bug 131315
+ [[ -f ${libdir}/libXvMCNVIDIA.so.${PV} ]] && \
+ doexe ${libdir}/libXvMCNVIDIA.so.${PV} && \
+ dosym libXvMCNVIDIA.so.${PV} \
+ /usr/${inslibdir}/libXvMCNVIDIA.so
+
+ exeinto ${NV_ROOT}/extensions
+ [[ -f ${libdir}/modules/libnvidia-wfb.so.${sover} ]] && \
+ newexe ${libdir}/modules/libnvidia-wfb.so.${sover} libwfb.so
+ [[ -f ${extdir}/libglx.so.${sover} ]] && \
+ newexe ${extdir}/libglx.so.${sover} libglx.so
+
+ # Includes
+ insinto ${NV_ROOT}/include
+ doins ${incdir}/*.h
+
+ #cuda
+ if [[ -f usr/include/cuda/cuda.h ]]; then
+ dodir /usr/include/cuda
+ insinto /usr/include/cuda
+ doins usr/include/cuda/*.h
+
+ if [[ -f usr/${pkglibdir}/libcuda.so.${PV} ]]; then
+ dolib.so usr/${pkglibdir}/libcuda.so.${PV}
+ dosym libcuda.so.${PV} /usr/${inslibdir}/libcuda.so.1
+ dosym libcuda.so.1 /usr/${inslibdir}/libcuda.so
+ fi
+ fi
+}
diff --git a/x11-drivers/nvidia-drivers/files/eblits/want_tls.eblit b/x11-drivers/nvidia-drivers/files/eblits/want_tls.eblit
new file mode 100644
index 0000000..3847bc2
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/eblits/want_tls.eblit
@@ -0,0 +1,33 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+want_tls() {
+ # For uclibc or anything non glibc, return false
+ has_version sys-libs/glibc || return 1
+
+ # Old versions of glibc were lt/no-tls only
+ has_version '<sys-libs/glibc-2.3.2' && return 1
+
+ if use x86 ; then
+ case ${CHOST/-*} in
+ i486|i586|i686) ;;
+ *) return 1 ;;
+ esac
+ fi
+
+ # If we've got nptl, we've got tls
+ built_with_use --missing true sys-libs/glibc nptl && return 0
+
+ # 2.3.5 turned off tls for linuxthreads glibc on i486 and i586
+ if use x86 && has_version '>=sys-libs/glibc-2.3.5' ; then
+ case ${CHOST/-*} in
+ i486|i586) return 1 ;;
+ esac
+ fi
+
+ # These versions built linuxthreads version to support tls, too
+ has_version '>=sys-libs/glibc-2.3.4.20040619-r2' && return 0
+
+ return 1
+}
diff --git a/x11-drivers/nvidia-drivers/files/libGL.la-r2 b/x11-drivers/nvidia-drivers/files/libGL.la-r2
new file mode 100644
index 0000000..863d184
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/libGL.la-r2
@@ -0,0 +1,32 @@
+# libGL.la - a libtool library file
+# Generated by ltmain.sh - GNU libtool 1.4 (1.920 2001/04/24 23:26:18)
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='libGL.so.1'
+
+# Names of this library.
+library_names='libGL.so.${PV} libGL.so.1 libGL.so'
+
+# The name of the static archive.
+old_library=''
+
+# Libraries that this one depends upon.
+dependency_libs='-L/usr/${libdir} -lm -lX11 -lXext -ldl'
+
+# Version information for libGL.
+current=${ver1}
+age=${ver2}
+revision=${ver3}
+
+# Is this an already installed library?
+installed=yes
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='/usr/${libdir}'
diff --git a/x11-drivers/nvidia-drivers/files/nvidia b/x11-drivers/nvidia-drivers/files/nvidia
new file mode 100644
index 0000000..7cf0f7c
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/nvidia
@@ -0,0 +1,40 @@
+# Nvidia drivers support
+alias char-major-195 nvidia
+alias /dev/nvidiactl char-major-195
+
+# To tweak the driver the following options can be used, note that
+# you should be careful, as it could cause instability!! For more
+# options see /usr/share/doc/PACKAGE/README
+#
+# To enable Side Band Adressing: NVreg_EnableAGPSBA=1
+#
+# To enable Fast Writes: NVreg_EnableAGPFW=1
+#
+# To enable both for instance, uncomment following line:
+#
+#options nvidia NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1
+# If you have a mobile chip, you may need to enable this option
+# if you have hard lockups when starting X.
+#
+# See: Appendix I. Configuring your laptop
+# In /usr/share/doc/PACKAGE/README for full details
+#
+# Choose the appropriate value for NVreg_Mobile from the table:
+# Value Meaning
+# ---------- --------------------------------------------------
+# 0xFFFFFFFF let the kernel module autodetect the correct value
+# 1 Dell laptops
+# 2 non-Compal Toshiba laptops
+# 3 all other laptops
+# 4 Compal Toshiba laptops
+# 5 Gateway laptops
+#
+#options nvidia NVreg_SoftEDIDs=0 NVreg_Mobile=3
+
+
+# !!! SECURITY WARNING !!!
+# DO NOT MODIFY OR REMOVE THE DEVICE FILE RELATED OPTIONS UNLESS YOU KNOW
+# WHAT YOU ARE DOING.
+# ONLY ADD TRUSTED USERS TO THE VIDEO GROUP, THESE USERS MAY BE ABLE TO CRASH,
+# COMPROMISE, OR IRREPARABLY DAMAGE THE MACHINE.
+options nvidia NVreg_DeviceFileMode=432 NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=VIDEOGID NVreg_ModifyDeviceFiles=1
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-169.07 b/x11-drivers/nvidia-drivers/files/nvidia-169.07
new file mode 100644
index 0000000..a96b0cd
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/nvidia-169.07
@@ -0,0 +1,14 @@
+# Nvidia drivers support
+alias char-major-195 nvidia
+alias /dev/nvidiactl char-major-195
+
+# To tweak the driver the following options can be used, note that
+# you should be careful, as it could cause instability!! For more
+# options see /usr/share/doc/PACKAGE/README
+#
+# !!! SECURITY WARNING !!!
+# DO NOT MODIFY OR REMOVE THE DEVICE FILE RELATED OPTIONS UNLESS YOU KNOW
+# WHAT YOU ARE DOING.
+# ONLY ADD TRUSTED USERS TO THE VIDEO GROUP, THESE USERS MAY BE ABLE TO CRASH,
+# COMPROMISE, OR IRREPARABLY DAMAGE THE MACHINE.
+options nvidia NVreg_DeviceFileMode=432 NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=VIDEOGID NVreg_ModifyDeviceFiles=1
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.14.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.14.ebuild
new file mode 100644
index 0000000..8f13cec
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.14.ebuild
@@ -0,0 +1,575 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver
+
+X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}"
+AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}"
+X86_FBSD_NV_PACKAGE="NVIDIA-FreeBSD-x86-${PV}"
+
+DESCRIPTION="NVIDIA X11 driver and GLX libraries"
+HOMEPAGE="http://www.nvidia.com/"
+SRC_URI="x86? ( ftp://download.nvidia.com/XFree86/Linux-x86/${PV}/${X86_NV_PACKAGE}-pkg0.run )
+ amd64? ( ftp://download.nvidia.com/XFree86/Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}-pkg2.run )
+ x86-fbsd? ( ftp://download.nvidia.com/freebsd/${PV}/${X86_FBSD_NV_PACKAGE}.tar.gz )"
+
+LICENSE="NVIDIA"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
+IUSE="acpi custom-cflags gtk multilib kernel_linux"
+RESTRICT="strip"
+EMULTILIB_PKG="true"
+
+COMMON="<x11-base/xorg-server-1.6.99
+ multilib? ( app-emulation/emul-linux-x86-xlibs )
+ kernel_FreeBSD? ( !media-video/nvidia-freebsd )
+ !app-emulation/emul-linux-x86-nvidia
+ !x11-drivers/nvidia-legacy-drivers"
+DEPEND="${COMMON}
+ kernel_linux? ( virtual/linux-sources )
+ app-admin/eselect-opengl"
+RDEPEND="${COMMON}
+ kernel_linux? ( virtual/modutils )
+ media-libs/mesa
+ acpi? ( sys-power/acpid )"
+PDEPEND="gtk? ( media-video/nvidia-settings )"
+
+QA_TEXTRELS_x86="usr/lib/libXvMCNVIDIA.so.${PV}
+ usr/lib/opengl/nvidia/no-tls/libnvidia-tls.so.${PV}
+ usr/lib/opengl/nvidia/tls/libnvidia-tls.so.${PV}
+ usr/lib/opengl/nvidia/lib/libGL.so.${PV}
+ usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.${PV}
+ usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
+ usr/lib/opengl/nvidia/extensions/libglx.so
+ usr/lib/xorg/modules/drivers/nvidia_drv.so
+ usr/lib/libcuda.so.${PV}
+ usr/lib/libvdpau_nvidia.so.${PV}"
+
+QA_TEXTRELS_x86_fbsd="boot/modules/nvidia.ko
+ usr/lib/opengl/nvidia/lib/libGL.so.1
+ usr/lib/opengl/nvidia/lib/libGLcore.so.1
+ usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.1
+ usr/lib/opengl/nvidia/no-tls/libnvidia-tls.so.1
+ usr/lib/opengl/nvidia/extensions/libglx.so
+ usr/lib/xorg/modules/drivers/nvidia_drv.so"
+
+QA_TEXTRELS_amd64="usr/lib32/opengl/nvidia/tls/libnvidia-tls.so.${PV}
+ usr/lib32/opengl/nvidia/no-tls/libnvidia-tls.so.${PV}
+ usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
+ usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
+ usr/lib32/opengl/nvidia/lib/libnvidia-cfg.so.${PV}
+ usr/lib32/libcuda.so.${PV}
+ usr/lib32/libvdpau_nvidia.so.${PV}"
+
+QA_EXECSTACK_x86="usr/lib/opengl/nvidia/lib/libGL.so.${PV}
+ usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
+ usr/lib/opengl/nvidia/extensions/libglx.so"
+
+QA_EXECSTACK_amd64="usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
+ usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
+ usr/lib64/xorg/modules/drivers/nvidia_drv.so
+ usr/lib64/libXvMCNVIDIA.so.${PV}
+ usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.${PV}
+ usr/lib64/opengl/nvidia/no-tls/libnvidia-tls.so.${PV}
+ usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
+ usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
+ usr/lib64/opengl/nvidia/lib/libnvidia-cfg.so.${PV}
+ usr/lib64/opengl/nvidia/extensions/libglx.so
+ usr/bin/nvidia-xconfig
+ usr/lib64/libXvMCNVIDIA.a:NVXVMC.o"
+
+QA_WX_LOAD_x86="usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
+ usr/lib/opengl/nvidia/lib/libGL.so.${PV}
+ usr/lib/opengl/nvidia/extensions/libglx.so
+ usr/lib/libXvMCNVIDIA.a"
+
+QA_WX_LOAD_amd64="usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
+ usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
+ usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
+ usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
+ usr/lib64/opengl/nvidia/extensions/libglx.so"
+
+# we really should have QA_DT_HASH_x86 and QA_DT_HASH_amd64 but Portage
+# does not support it. bug #271416
+
+QA_DT_HASH="usr/lib32/libvdpau_trace.so.${PV}
+ usr/lib32/libvdpau.so.${PV}
+ usr/lib32/libcuda.so.${PV}
+ usr/lib32/opengl/nvidia/no-tls/libnvidia-tls.so.${PV}
+ usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
+ usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
+ usr/lib32/opengl/nvidia/tls/libnvidia-tls.so.${PV}
+ usr/lib32/libvdpau_nvidia.so.${PV}
+ usr/bin/nvidia-xconfig
+ usr/lib64/libvdpau_trace.so.${PV}
+ usr/lib64/libvdpau.so.${PV}
+ usr/lib64/libcuda.so.${PV}
+ usr/lib64/opengl/nvidia/no-tls/libnvidia-tls.so.${PV}
+ usr/lib64/opengl/nvidia/lib/libnvidia-cfg.so.${PV}
+ usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
+ usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
+ usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.${PV}
+ usr/lib64/opengl/nvidia/extensions/libwfb.so
+ usr/lib64/opengl/nvidia/extensions/libglx.so
+ usr/lib64/xorg/modules/drivers/nvidia_drv.so
+ usr/lib64/libXvMCNVIDIA.so.${PV}
+ usr/lib64/libvdpau_nvidia.so.${PV}
+
+ usr/lib/libvdpau_trace.so.${PV}
+ usr/lib/libvdpau.so.${PV}
+ usr/lib/libcuda.so.${PV}
+ usr/lib/opengl/nvidia/no-tls/libnvidia-tls.so.${PV}
+ usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.${PV}
+ usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
+ usr/lib/opengl/nvidia/lib/libGL.so.${PV}
+ usr/lib/opengl/nvidia/tls/libnvidia-tls.so.${PV}
+ usr/lib/opengl/nvidia/extensions/libwfb.so
+ usr/lib/opengl/nvidia/extensions/libglx.so
+ usr/lib/xorg/modules/drivers/nvidia_drv.so
+ usr/lib/libXvMCNVIDIA.so.${PV}
+ usr/lib/libvdpau_nvidia.so.${PV}"
+
+if use x86; then
+ PKG_V="-pkg0"
+ NV_PACKAGE="${X86_NV_PACKAGE}"
+elif use amd64; then
+ PKG_V="-pkg2"
+ NV_PACKAGE="${AMD64_NV_PACKAGE}"
+elif use x86-fbsd; then
+ PKG_V=""
+ NV_PACKAGE="${X86_FBSD_NV_PACKAGE}"
+fi
+
+S="${WORKDIR}/${NV_PACKAGE}${PKG_V}"
+
+mtrr_check() {
+ ebegin "Checking for MTRR support"
+ linux_chkconfig_present MTRR
+ eend $?
+
+ if [[ $? -ne 0 ]] ; then
+ eerror "Please enable MTRR support in your kernel config, found at:"
+ eerror
+ eerror " Processor type and features"
+ eerror " [*] MTRR (Memory Type Range Register) support"
+ eerror
+ eerror "and recompile your kernel ..."
+ die "MTRR support not detected!"
+ fi
+}
+
+paravirt_check() {
+ ebegin "Checking for Paravirtualized guest support"
+ linux_chkconfig_present PARAVIRT
+
+ if [[ $? -eq 0 ]]; then
+ eerror "Please disable PARAVIRT in your kernel config, found at:"
+ eerror
+ eerror " Processor type and features"
+ eerror " [*] Paravirtualized guest support"
+ eerror
+ eerror "or XEN support"
+ eerror
+ eerror "and recompile your kernel .."
+ die "PARAVIRT support detected!"
+ fi
+}
+
+pkg_setup() {
+ # try to turn off distcc and ccache for people that have a problem with it
+ export DISTCC_DISABLE=1
+ export CCACHE_DISABLE=1
+
+ if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then
+ eerror "This ebuild doesn't currently support changing your default abi."
+ die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}"
+ fi
+
+ if use kernel_linux; then
+ linux-mod_pkg_setup
+ MODULE_NAMES="nvidia(video:${S}/usr/src/nv)"
+ BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \
+ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)"
+ mtrr_check
+ paravirt_check
+ fi
+
+ # On BSD userland it wants real make command
+ use userland_BSD && MAKE="$(get_bmake)"
+
+ export _POSIX2_VERSION="199209"
+
+ # Since Nvidia ships 3 different series of drivers, we need to give the user
+ # some kind of guidance as to what version they should install. This tries
+ # to point the user in the right direction but can't be perfect. check
+ # nvidia-driver.eclass
+ nvidia-driver-check-warning
+
+ # set variables to where files are in the package structure
+ if use kernel_FreeBSD; then
+ NV_DOC="${S}/doc"
+ NV_EXEC="${S}/obj"
+ NV_SRC="${S}/src"
+ elif use kernel_linux; then
+ NV_DOC="${S}/usr/share/doc"
+ NV_EXEC="${S}/usr/bin"
+ NV_SRC="${S}/usr/src/nv"
+ else
+ die "Could not determine proper NVIDIA package"
+ fi
+}
+
+src_unpack() {
+ if use kernel_linux && kernel_is lt 2 6 7; then
+ echo
+ ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
+ ewarn "This is not officially supported for ${P}. It is likely you"
+ ewarn "will not be able to compile or use the kernel module."
+ ewarn "It is recommended that you upgrade your kernel to a version >= 2.6.7"
+ echo
+ ewarn "DO NOT file bug reports for kernel versions less than 2.6.7 as they will be ignored."
+ fi
+
+ if ! use x86-fbsd; then
+ mkdir "${S}"
+ cd "${S}"
+ unpack_makeself
+ else
+ unpack ${A}
+ fi
+
+ # Patches go below here, add brief description
+ cd "${S}"
+ use x86-fbsd && cd doc
+
+ # Use the correct defines to make gtkglext build work
+ epatch "${FILESDIR}"/NVIDIA_glx-defines.patch
+ # Use some more sensible gl headers and make way for new glext.h
+ epatch "${FILESDIR}"/NVIDIA_glx-glheader.patch
+
+ # allow on board sensors to work with lm_sensors
+ if use kernel_linux; then
+ epatch "${FILESDIR}"/NVIDIA_i2c-hwmon.patch
+ fi
+
+ if use kernel_linux; then
+ # Quiet down warnings the user does not need to see
+ sed -i \
+ -e 's:-Wpointer-arith::g' \
+ -e 's:-Wsign-compare::g' \
+ "${NV_SRC}"/Makefile.kbuild
+
+ # If you set this then it's your own fault when stuff breaks :)
+ use custom-cflags && sed -i "s:-O:${CFLAGS}:" "${NV_SRC}"/Makefile.*
+
+ # If greater than 2.6.5 use M= instead of SUBDIR=
+ convert_to_m "${NV_SRC}"/Makefile.kbuild
+ fi
+ #echo "* Applying DKMS patch to compile nvidia.ko on 2.6.31 kernel"
+ cp "${FILESDIR}"/drm_agp_memory-2.6.31.patch "${NV_SRC}/"
+}
+
+src_compile() {
+ # This is already the default on Linux, as there's no toplevel Makefile, but
+ # on FreeBSD there's one and triggers the kernel module build, as we install
+ # it by itself, pass this.
+
+ cd "${NV_SRC}"
+ epatch drm_agp_memory-2.6.31.patch
+ if use x86-fbsd; then
+ MAKE="$(get_bmake)" CFLAGS="-Wno-sign-compare" emake CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" LDFLAGS="$(raw-ldflags)" || die
+ elif use kernel_linux; then
+ linux-mod_src_compile
+ fi
+}
+
+src_install() {
+ local MLTEST=$(type dyn_unpack)
+
+ cd "${S}"
+
+ if use kernel_linux; then
+ linux-mod_src_install
+
+ VIDEOGROUP="$(egetent group video | cut -d ':' -f 3)"
+ if [ -z "$VIDEOGROUP" ]; then
+ eerror "Failed to determine the video group gid."
+ die "Failed to determine the video group gid."
+ fi
+
+ # Add the aliases
+ [ -f "${FILESDIR}/nvidia" ] || die "nvidia missing in FILESDIR"
+ sed -e 's:PACKAGE:'${PF}':g' \
+ -e 's:VIDEOGID:'${VIDEOGROUP}':' "${FILESDIR}"/nvidia-169.07 > \
+ "${WORKDIR}"/nvidia
+ insinto /etc/modprobe.d
+ newins "${WORKDIR}"/nvidia nvidia.conf \
+ || die "newins nvidia.conf failed"
+ elif use x86-fbsd; then
+ insinto /boot/modules
+ doins "${WORKDIR}/${NV_PACKAGE}/src/nvidia.kld" || die "doins failed"
+
+ exeinto /boot/modules
+ doexe "${WORKDIR}/${NV_PACKAGE}/src/nvidia.ko" || die "doexe failed"
+ fi
+
+ if has_multilib_profile ; then
+ local OABI=${ABI}
+ for ABI in $(get_install_abis) ; do
+ src_install-libs
+ done
+ ABI=${OABI}
+ unset OABI
+ elif use amd64 ; then
+ src_install-libs lib32 $(get_multilibdir)
+ src_install-libs lib $(get_libdir)
+
+ rm -rf "${D}"/usr/$(get_multilibdir)/opengl/nvidia/include
+ rm -rf "${D}"/usr/$(get_multilibdir)/opengl/nvidia/extensions
+ else
+ src_install-libs
+ fi
+
+ is_final_abi || return 0
+
+ # Documentation
+ dodoc "${NV_DOC}"/{XF86Config.sample,Copyrights}
+ dohtml "${NV_DOC}"/html/*
+ if use x86-fbsd; then
+ dodoc "${NV_DOC}/README"
+ else
+ # Docs
+ newdoc "${NV_DOC}/README.txt" README
+ dodoc "${NV_DOC}/NVIDIA_Changelog"
+ fi
+
+ # Helper Apps
+ dobin ${NV_EXEC}/nvidia-xconfig || die "dobin failed"
+ dobin ${NV_EXEC}/nvidia-bug-report.sh || die "dobin failed"
+}
+
+# Install nvidia library:
+# the first parameter is the place where to install it
+# the second parameter is the base name of the library
+# the third parameter is the provided soversion
+donvidia() {
+ dodir $1
+ exeinto $1
+
+ libname=$(basename $2)
+
+ # libnvidia-cfg.so is no longer supplied in lib32; step over it gracefully
+ if [ -e $2.$3 ] ; then
+ doexe $2.$3
+ dosym ${libname}.$3 $1/${libname}
+ [[ $3 != "1" ]] && dosym ${libname}.$3 $1/${libname}.1
+ fi
+}
+
+src_install-libs() {
+ local pkglibdir=lib
+ local inslibdir=$(get_libdir)
+
+ if [[ ${#} -eq 2 ]] ; then
+ pkglibdir=${1}
+ inslibdir=${2}
+ elif has_multilib_profile && [[ ${ABI} == "x86" ]] ; then
+ pkglibdir=lib32
+ fi
+
+ local usrpkglibdir=usr/${pkglibdir}
+ local libdir=usr/X11R6/${pkglibdir}
+ local drvdir=${libdir}/modules/drivers
+ local extdir=${libdir}/modules/extensions
+ local incdir=usr/include/GL
+ local sover=${PV}
+ local NV_ROOT="/usr/${inslibdir}/opengl/nvidia"
+ local NO_TLS_ROOT="${NV_ROOT}/no-tls"
+ local TLS_ROOT="${NV_ROOT}/tls"
+ local X11_LIB_DIR="/usr/${inslibdir}/xorg"
+
+ if use x86-fbsd; then
+ # on FreeBSD everything is on obj/
+ pkglibdir=obj
+ usrpkglibdir=obj
+ x11pkglibdir=obj
+ drvdir=obj
+ extdir=obj
+
+ # don't ask me why the headers are there.. glxext.h is missing
+ incdir=doc
+
+ # on FreeBSD it has just .1 suffix
+ sover=1
+ fi
+
+ # The GLX libraries
+ donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libGL.so ${sover}
+ donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libGLcore.so ${sover}
+
+ donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libnvidia-cfg.so ${sover}
+
+ dodir ${NO_TLS_ROOT}
+ donvidia ${NO_TLS_ROOT} ${usrpkglibdir}/libnvidia-tls.so ${sover}
+
+ if ! use x86-fbsd; then
+ donvidia ${TLS_ROOT} ${usrpkglibdir}/tls/libnvidia-tls.so ${sover}
+ fi
+
+ if want_tls ; then
+ dosym ../tls/libnvidia-tls.so ${NV_ROOT}/lib
+ dosym ../tls/libnvidia-tls.so.1 ${NV_ROOT}/lib
+ dosym ../tls/libnvidia-tls.so.${sover} ${NV_ROOT}/lib
+ else
+ dosym ../no-tls/libnvidia-tls.so ${NV_ROOT}/lib
+ dosym ../no-tls/libnvidia-tls.so.1 ${NV_ROOT}/lib
+ dosym ../no-tls/libnvidia-tls.so.${sover} ${NV_ROOT}/lib
+ fi
+
+ if ! use x86-fbsd; then
+ # Install the .la file for libtool, to prevent e.g. bug #176423
+ [ -f "${FILESDIR}/libGL.la-r2" ] || die "libGL.la-r2 missing in FILESDIR"
+ local ver1=$(get_version_component_range 1)
+ local ver2=$(get_version_component_range 2)
+ local ver3=$(get_version_component_range 3)
+ sed -e "s:\${PV}:${PV}:" \
+ -e "s:\${ver1}:${ver1}:" \
+ -e "s:\${ver2}:${ver2}:" \
+ -e "s:\${ver3}:${ver3}:" \
+ -e "s:\${libdir}:${inslibdir}:" \
+ "${FILESDIR}"/libGL.la-r2 > "${D}"/${NV_ROOT}/lib/libGL.la
+ fi
+
+ exeinto ${X11_LIB_DIR}/modules/drivers
+
+ [[ -f ${drvdir}/nvidia_drv.so ]] && \
+ doexe ${drvdir}/nvidia_drv.so
+
+ insinto /usr/${inslibdir}
+ [[ -f ${libdir}/libXvMCNVIDIA.a ]] && \
+ doins ${libdir}/libXvMCNVIDIA.a
+ exeinto /usr/${inslibdir}
+ # fix Bug 131315
+ [[ -f ${libdir}/libXvMCNVIDIA.so.${PV} ]] && \
+ doexe ${libdir}/libXvMCNVIDIA.so.${PV} && \
+ dosym libXvMCNVIDIA.so.${PV} \
+ /usr/${inslibdir}/libXvMCNVIDIA.so
+
+ exeinto ${NV_ROOT}/extensions
+ [[ -f ${libdir}/modules/libnvidia-wfb.so.${sover} ]] && \
+ newexe ${libdir}/modules/libnvidia-wfb.so.${sover} libwfb.so
+ [[ -f ${extdir}/libglx.so.${sover} ]] && \
+ newexe ${extdir}/libglx.so.${sover} libglx.so
+
+ # Includes
+ insinto ${NV_ROOT}/include
+ doins ${incdir}/*.h
+
+ #cuda
+ if [[ -f usr/include/cuda/cuda.h ]]; then
+ dodir /usr/include/cuda
+ insinto /usr/include/cuda
+ doins usr/include/cuda/*.h
+
+ if [[ -f usr/${pkglibdir}/libcuda.so.${PV} ]]; then
+ dolib.so usr/${pkglibdir}/libcuda.so.${PV}
+ dosym libcuda.so.${PV} /usr/${inslibdir}/libcuda.so.1
+ dosym libcuda.so.1 /usr/${inslibdir}/libcuda.so
+ fi
+ fi
+
+ #vdpau
+ if [[ -f usr/include/vdpau/vdpau.h ]]; then
+ dodir /usr/include/vdpau
+ insinto /usr/include/vdpau
+ doins usr/include/vdpau/*.h
+
+ for vdpaulib in vdpau_nvidia vdpau vdpau_trace; do
+ dolib.so usr/${pkglibdir}/lib${vdpaulib}.so.${PV}
+ dosym lib${vdpaulib}.so.${PV} /usr/${inslibdir}/lib${vdpaulib}.so.1
+ dosym lib${vdpaulib}.so.1 /usr/${inslibdir}/lib${vdpaulib}.so
+ done
+ fi
+}
+
+pkg_preinst() {
+
+ # Clean the dynamic libGL stuff's home to ensure
+ # we dont have stale libs floating around
+ if [ -d "${ROOT}"/usr/lib/opengl/nvidia ] ; then
+ rm -rf "${ROOT}"/usr/lib/opengl/nvidia/*
+ fi
+ # Make sure we nuke the old nvidia-glx's env.d file
+ if [ -e "${ROOT}"/etc/env.d/09nvidia ] ; then
+ rm -f "${ROOT}"/etc/env.d/09nvidia
+ fi
+}
+
+pkg_postinst() {
+ if use kernel_linux; then
+ linux-mod_pkg_postinst
+ fi
+
+ # Switch to the nvidia implementation
+ eselect opengl set --use-old nvidia
+
+ echo
+ elog "You must be in the video group to use the NVIDIA device"
+ elog "For more info, read the docs at"
+ elog "http://www.gentoo.org/doc/en/nvidia-guide.xml#doc_chap3_sect6"
+ elog
+
+ elog "This ebuild installs a kernel module and X driver. Both must"
+ elog "match explicitly in their version. This means, if you restart"
+ elog "X, you most modprobe -r nvidia before starting it back up"
+ elog
+
+ elog "To use the NVIDIA GLX, run \"eselect opengl set nvidia\""
+ elog
+ elog "nVidia has requested that any bug reports submitted have the"
+ elog "output of /usr/bin/nvidia-bug-report.sh included."
+ elog
+ elog "To work with compiz, you must enable the AddARGBGLXVisuals option."
+ elog
+ elog "If you are having resolution problems, try disabling DynamicTwinView."
+ echo
+}
+
+want_tls() {
+ # For uclibc or anything non glibc, return false
+ has_version sys-libs/glibc || return 1
+
+ # Old versions of glibc were lt/no-tls only
+ has_version '<sys-libs/glibc-2.3.2' && return 1
+
+ if use x86 ; then
+ case ${CHOST/-*} in
+ i486|i586|i686) ;;
+ *) return 1 ;;
+ esac
+ fi
+
+ # If we've got nptl, we've got tls
+ built_with_use --missing true sys-libs/glibc nptl && return 0
+
+ # 2.3.5 turned off tls for linuxthreads glibc on i486 and i586
+ if use x86 && has_version '>=sys-libs/glibc-2.3.5' ; then
+ case ${CHOST/-*} in
+ i486|i586) return 1 ;;
+ esac
+ fi
+
+ # These versions built linuxthreads version to support tls, too
+ has_version '>=sys-libs/glibc-2.3.4.20040619-r2' && return 0
+
+ return 1
+}
+
+pkg_postrm() {
+ if use kernel_linux; then
+ linux-mod_pkg_postrm
+ fi
+ eselect opengl set --use-old xorg-x11
+}
diff --git a/x11-libs/cairo/files b/x11-libs/cairo/files
index 68d5a11..4cb6adc 120000
--- a/x11-libs/cairo/files
+++ b/x11-libs/cairo/files
@@ -1 +1,131 @@
-/var/paludis/repositories/gentoo/x11-libs/cairo/files \ No newline at end of file
+/var/paludis/repositories/gentoo/x11-libs/cairo/files under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.8.2.ebuild,v 1.1 2008/10/31 20:45:54 cardoe Exp $
+
+inherit eutils flag-o-matic libtool git
+
+DESCRIPTION="A vector graphics library with cross-device output support"
+HOMEPAGE="http://cairographics.org/"
+SRC_URI=""
+
+EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
+EGIT_BOOTSTRAP="./autogen.sh"
+
+LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
+SLOT=""
+KEYWORDS=""
+IUSE="debug directfb doc glitz opengl svg X xcb"
+
+# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
+RESTRICT="test"
+
+RDEPEND="media-libs/fontconfig
+ >=media-libs/freetype-2.1.9
+ sys-libs/zlib
+ media-libs/libpng
+ >=x11-libs/pixman-0.12.0
+ directfb? ( >=dev-libs/DirectFB-0.9.24 )
+ glitz? ( >=media-libs/glitz-0.5.1 )
+ svg? ( dev-libs/libxml2 )
+ X? ( >=x11-libs/libXrender-0.6
+ x11-libs/libXext
+ x11-libs/libX11 )
+ xcb? ( >=x11-libs/libxcb-0.92
+ x11-libs/xcb-util )"
+# test? (
+# pdf test
+# x11-libs/pango
+# >=x11-libs/gtk+-2.0
+# >=app-text/poppler-bindings-0.9.2
+# ps test
+# virtual/ghostscript
+# svg test
+# >=x11-libs/gtk+-2.0
+# >=gnome-base/librsvg-2.15.0
+
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.19
+ doc? ( >=dev-util/gtk-doc-1.6
+ ~app-text/docbook-xml-dtd-4.2 )
+ X? ( x11-proto/renderproto )
+ xcb? ( x11-proto/xcb-proto )"
+
+#pkg_setup() {
+# if ! built_with_use app-text/poppler-bindings gtk ; then
+# eerror 'poppler-bindings with gtk is required for the pdf backend'
+# die 'poppler-bindings built without gtk support'
+# fi
+#}
+
+src_unpack() {
+ git_src_unpack
+ cd "${S}"
+
+}
+
+src_compile() {
+ #gets rid of fbmmx.c inlining warnings
+ append-flags -finline-limit=1200
+
+ if use glitz && use opengl; then
+ export glitz_LIBS=-lglitz-glx
+ fi
+
+ econf $(use_enable X xlib) $(use_enable doc gtk-doc) \
+ $(use_enable directfb) $(use_enable xcb) \
+ $(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \
+ $(use_enable debug test-surfaces) --enable-pdf --enable-png \
+ --enable-freetype --enable-ps \
+ || die "configure failed"
+
+ emake || die "compile failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "Installation failed"
+ dodoc AUTHORS ChangeLog NEWS README
+}
+eerror "${func} support, please enable the '${use_flag}' USE flag and"
+ eerror "re-emerge ${package}."
+ elog "You can enable this USE flag either globally in /etc/make.conf,"
+ elog "or just for specific packages in /etc/portage/package.use."
+ die "${package} missing ${func} support"
+}
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ if ! use mysql && ! use postgres && ! use sqlite ; then
+ eerror "You must select at least one database backend, by enabling"
+ eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
+ die "no database backend selected"
+ fi
+
+ # python has built-in sqlite support starting from 2.5
+ if use sqlite && \
+ has_version ">=dev-lang/python-2.5" && \
+ ! has_version ">=dev-python/pysqlite-2.3" && \
+ ! built_with_use dev-lang/python sqlite ; then
+ eerror "To use the sqlite database backend, you must either:"
+ eerror "- build dev-lang/python with sqlite support, using the 'sqlite'"
+ eerror " USE flag, or"
+ eerror "- emerge dev-python/pysqlite"
+ die "missing python sqlite support"
+ fi
+
+ if use subversion && \
+ ! built_with_use dev-util/subversion python ; then
+ built_with_use_die dev-util/subversion python
+ fi
+
+ enewgroup tracd
+ enewuser tracd -1 -1 -1 tracd
+}
+
+src_upack(){
+ subversion_src_unpack
+ cd ${S}
+}
+
+src_install() {
+ webapp_src_preinst
+ distutils_src_insp \ No newline at end of file
diff --git a/x11-libs/gtk+/files b/x11-libs/gtk+/files
index 145e7da..a1d9a50 120000
--- a/x11-libs/gtk+/files
+++ b/x11-libs/gtk+/files
@@ -1 +1,153 @@
-/var/paludis/repositories/gentoo/x11-libs/gtk+/files \ No newline at end of file
+/var/paludis/repositories/gentoo/x11-libs/gtk+/filesd under the terms of the GNU General Public License v2
+# $Header: $
+
+ARTS_REQUIRED="never"
+NEED_KDE="3.5"
+
+inherit kde
+
+PREFIX=`kde-config --prefix`
+#QTDIR='/usr'
+
+DESCRIPTION="Compizconfig Kconfig Backend"
+HOMEPAGE="http://www.compiz.org/"
+SRC_URI="http://releases.compiz.org/components/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="~x11-libs/libcompizconfig-${PV}
+ ~x11-wm/compiz-${PV}"
+RDEPEND="${DEPEND}"
+onon
+ )
+ x11-libs/qt-script:4
+ x11-libs/qt-sql:4
+ x11-libs/qt-svg:4
+ x11-libs/qt-xmlpatterns:4
+"
+RDEPEND="${DEPEND}"
+
+PLUGINS="core gui network opengl sql svg uitools webkit xml xmlpatterns"
+
+src_unpack() {
+ git_src_unpack
+ cd ${S}
+ epatch ${FILESDIR}/gcc4.4.patch
+}
+
+pkg_setup(){
+ QTDIR="/usr/include/qt4"
+ QTLIBDIR="/usr/$(get_libdir)/qt4/"
+}
+src_prepare() {
+ # remove phonon
+ sed -i \
+ -e "/typesystem_phonon.xml/d" \
+ generator/generator.qrc || die "sed failed"
+ sed -i \
+ -e "/qtscript_phonon/d" \
+ qtbindings/qtbindings.pro || die "sed failed"
+ git_src_prepare
+ qt4_src_prepare
+}
+
+src_configure() {
+ cd "${S}"/generator
+ eqmake4 generator.pro
+ cd "${S}"/qtbindings
+ eqmake4 qtbindings.pro
+}
+
+src_compile() {
+ cd "${S}"/generator
+ emake || die "emake generator failed"
+ ./generator --include-paths="/usr/include/qt4/" || die "running generator failed"
+ cd "${S}"/qtbindings
+ emake || die "make qtbindings failed"
+}
+
+src_install() {
+ insinto "${QTLIBDIR}"/plugins/script/
+ insopts -m0755
+ doins -r "${S}"/plugins/script/*.so || die "doins failed"
+}
+ die 'poppler-bindings built without gtk support'
+# fi
+#}
+
+src_unpack() {
+ git_src_unpack
+ cd "${S}"
+
+}
+
+src_compile() {
+ #gets rid of fbmmx.c inlining warnings
+ append-flags -finline-limit=1200
+
+ if use glitz && use opengl; then
+ export glitz_LIBS=-lglitz-glx
+ fi
+
+ econf $(use_enable X xlib) $(use_enable doc gtk-doc) \
+ $(use_enable directfb) $(use_enable xcb) \
+ $(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \
+ $(use_enable debug test-surfaces) --enable-pdf --enable-png \
+ --enable-freetype --enable-ps \
+ || die "configure failed"
+
+ emake || die "compile failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "Installation failed"
+ dodoc AUTHORS ChangeLog NEWS README
+}
+eerror "${func} support, please enable the '${use_flag}' USE flag and"
+ eerror "re-emerge ${package}."
+ elog "You can enable this USE flag either globally in /etc/make.conf,"
+ elog "or just for specific packages in /etc/portage/package.use."
+ die "${package} missing ${func} support"
+}
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ if ! use mysql && ! use postgres && ! use sqlite ; then
+ eerror "You must select at least one database backend, by enabling"
+ eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags."
+ die "no database backend selected"
+ fi
+
+ # python has built-in sqlite support starting from 2.5
+ if use sqlite && \
+ has_version ">=dev-lang/python-2.5" && \
+ ! has_version ">=dev-python/pysqlite-2.3" && \
+ ! built_with_use dev-lang/python sqlite ; then
+ eerror "To use the sqlite database backend, you must either:"
+ eerror "- build dev-lang/python with sqlite support, using the 'sqlite'"
+ eerror " USE flag, or"
+ eerror "- emerge dev-python/pysqlite"
+ die "missing python sqlite support"
+ fi
+
+ if use subversion && \
+ ! built_with_use dev-util/subversion python ; then
+ built_with_use_die dev-util/subversion python
+ fi
+
+ enewgroup tracd
+ enewuser tracd -1 -1 -1 tracd
+}
+
+src_upack(){
+ subversion_src_unpack
+ cd ${S}
+}
+
+src_install() {
+ webapp_src_preinst
+ distutils_src_insp \ No newline at end of file
diff --git a/x11-libs/pango/files b/x11-libs/pango/files
index 78f78af..b9823e4 120000
--- a/x11-libs/pango/files
+++ b/x11-libs/pango/files
@@ -1 +1,151 @@
-/var/paludis/repositories/gentoo/x11-libs/pango/files \ No newline at end of file
+/var/paludis/repositories/gentoo/x11-libs/pango/files under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/pango/pango-1.22.2.ebuild,v 1.1 2008/10/31 00:10:31 leio Exp $
+
+inherit eutils multilib subversion
+
+DESCRIPTION="Text rendering and layout library"
+HOMEPAGE="http://www.pango.org/"
+
+LICENSE="LGPL-2 FTL"
+SLOT=""
+KEYWORDS=""
+IUSE="X debug doc"
+
+ESVN_REPO_URI="http://svn.gnome.org/svn/pango/trunk"
+ESVN_STORE_DIR="${DISTDIR}/svn-src"
+ESVN_PROJECT="${PN/-svn}"
+ESVN_BOOTSTRAP="./autogen.sh"
+
+S="${WORKDIR}/${P/_/}"
+
+RDEPEND=">=dev-libs/glib-2.17.3
+ >=media-libs/fontconfig-1.0.1
+ >=media-libs/freetype-2
+ >=x11-libs/cairo-1.7.6
+ X? (
+ x11-libs/libXrender
+ x11-libs/libX11
+ x11-libs/libXft
+ )"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.9
+ doc? (
+ >=dev-util/gtk-doc-1
+ ~app-text/docbook-xml-dtd-4.1.2
+ )
+ X? ( x11-proto/xproto )
+ gnome-base/gnome-common"
+
+DOCS="AUTHORS ChangeLog* NEWS README TODO*"
+
+function multilib_enabled() {
+ has_multilib_profile || ( use x86 && [ "$(get_libdir)" == "lib32" ] )
+}
+
+pkg_setup() {
+ # Do NOT build with --disable-debug/--enable-debug=no
+ if use debug ; then
+ G2CONF="${G2CONF} --enable-debug=yes"
+ fi
+
+ G2CONF="${G2CONF} $(use_with X x)"
+}
+
+src_unpack() {
+ subversion_src_unpack
+
+ # make config file location host specific so that a 32bit and 64bit pango
+ # wont fight with each other on a multilib system. Fix building for
+ # emul-linux-x86-gtklibs
+ if multilib_enabled ; then
+ epatch "${FILESDIR}/${PN}-1.2.5-lib64.patch"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ rm "${D}/etc/pango/pango.modules"
+}
+
+pkg_postinst() {
+ if [[ "${ROOT}" == "/" ]] ; then
+ einfo "Generating modules listing..."
+
+ local PANGO_CONFDIR=
+
+ if multilib_enabled ; then
+ PANGO_CONFDIR="/etc/pango/${CHOST}"
+ else
+ PANGO_CONFDIR="/etc/pango"
+ fi
+
+ mkdir -p ${PANGO_CONFDIR}
+
+ pango-querymodules > ${PANGO_CONFDIR}/pango.modules
+ fi
+}
+
+src_compile(){
+ econf\
+ $(use_enable doc gtk-doc) \
+ $(use_enable doc man) \
+ $(useq debug && echo --enable-debug=yes )
+ emake
+}
+ib.patch"
+
+ # Workaround adobe flash infinite loop. Patch from http://bugzilla.gnome.org/show_bug.cgi?id=463773#c11
+ epatch "${FILESDIR}/${PN}-2.12.0-flash-workaround.patch"
+
+ # Don't break inclusion of gtkclist.h, upstream bug 536767
+ epatch "${FILESDIR}/${PN}-2.14.3-limit-gtksignal-includes.patch"
+
+ # -O3 and company cause random crashes in applications. Bug #133469
+ replace-flags -O3 -O2
+ strip-flags
+
+ use ppc64 && append-flags -mminimal-toc
+
+ elibtoolize
+}
+
+src_compile() {
+ # png always on to display icons (foser)
+ local myconf="$(use_enable doc gtk-doc) \
+ $(use_with jpeg libjpeg) \
+ $(use_with jpeg2k libjasper) \
+ $(use_with tiff libtiff) \
+ $(use_enable xinerama) \
+ $(use_enable cups cups auto) \
+ --with-libpng \
+ --with-gdktarget=x11 \
+ --with-xinput"
+
+ # Passing --disable-debug is not recommended for production use
+ use debug && myconf="${myconf} --enable-debug=yes"
+
+ econf ${myconf} || die "configure failed"
+ emake || die "compile failed"
+}
+
+src_test() {
+ Xemake check || die "tests failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+
+ set_gtk2_confdir
+ dodir ${GTK2_CONFDIR}
+ keepdir ${GTK2_CONFDIR}
+
+ # see bug #133241
+ echo 'gtk-fallback-icon-theme = "gnome"' > "${D}/${GTK2_CONFDIR}/gtkrc"
+
+ # Enable xft in environment as suggested by <utx@gentoo.org>
+ dodir /etc/env.d
+ echo "GDK_USE_XFT=1" > "${D}/etc/env.d/50gtk2"
+
+ dodoc AUTHORS ChangeLog* HACKING NEWS* README*
+
+ # This has to be removed, because it's multilib specific; genep \ No newline at end of file