[Exherbo-dev] [PATCH] Change some sys-apps packages to use default_src_install

nux nuxboxes at yahoo.fr
Sat Jun 14 18:07:51 BST 2008


---
 .../sys-apps/coreutils/coreutils-6.9-r1.exheres-0  |    2 +-
 .../sys-apps/diffutils/diffutils-2.8.7.exheres-0   |    6 +-----
 packages/sys-apps/file/file-4.23.exheres-0         |    6 ++++--
 .../sys-apps/findutils/findutils-4.3.8.exheres-0   |    7 ++++---
 packages/sys-apps/grep/grep-2.5.1a.exheres-0       |    7 +------
 packages/sys-apps/hdparm/hdparm-7.7.exheres-0      |    5 -----
 .../sys-apps/help2man/help2man-1.36.4.exheres-0    |    6 +-----
 packages/sys-apps/kbd/kbd-1.12.exheres-0           |    6 ++++--
 packages/sys-apps/less/less-418.exheres-0          |    6 ++----
 .../sys-apps/man-pages/man-pages-2.78.exheres-0    |    4 +---
 packages/sys-apps/man/man-1.6e.exheres-0           |    4 ----
 .../module-init-tools-3.2.2-r1.exheres-0           |    6 ++++--
 packages/sys-apps/paludis/paludis-scm.exheres-0    |    5 ++---
 .../sys-apps/pciutils/pciutils-2.2.10.exheres-0    |    4 +---
 .../sys-apps/sandbox/sandbox-1.2.18.1-r3.exheres-0 |    4 +---
 packages/sys-apps/sed/sed-4.1.5.exheres-0          |    5 -----
 packages/sys-apps/setarch/setarch-2.0.exheres-0    |    4 ----
 .../sys-apps/syslog-ng/syslog-ng-2.0.5.exheres-0   |    5 -----
 packages/sys-apps/texinfo/texinfo-4.9.exheres-0    |    8 ++------
 packages/sys-apps/upstart/upstart-0.3.9.exheres-0  |    5 -----
 .../sys-apps/util-linux/util-linux-2.12r.exheres-0 |    6 +-----
 packages/sys-apps/which/which-2.18.exheres-0       |    5 +----
 22 files changed, 31 insertions(+), 85 deletions(-)

diff --git a/packages/sys-apps/coreutils/coreutils-6.9-r1.exheres-0 b/packages/sys-apps/coreutils/coreutils-6.9-r1.exheres-0
index 0b0ffec..326db40 100644
--- a/packages/sys-apps/coreutils/coreutils-6.9-r1.exheres-0
+++ b/packages/sys-apps/coreutils/coreutils-6.9-r1.exheres-0
@@ -24,7 +24,7 @@ src_prepare() {
 DEFAULT_SRC_CONFIGURE_OPTION_ENABLES="acl nls"
 
 src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
+    default
 
     local binfiles="basename cat chgrp chmod chown cp chroot \
                     cut date df dir dirname du echo env expr \
diff --git a/packages/sys-apps/diffutils/diffutils-2.8.7.exheres-0 b/packages/sys-apps/diffutils/diffutils-2.8.7.exheres-0
index 3e8d5da..6bf11ed 100644
--- a/packages/sys-apps/diffutils/diffutils-2.8.7.exheres-0
+++ b/packages/sys-apps/diffutils/diffutils-2.8.7.exheres-0
@@ -16,8 +16,4 @@ src_configure() {
     econf $(option_enable nls) || die "Configure failed."
 }
 
-src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc ABOUT-NLS AUTHORS INSTALL NEWS README THANKS TODO
-}
-
+DEFAULT_SRC_INSTALL_EXTRA_DOCS="ABOUT-NLS INSTALL"
diff --git a/packages/sys-apps/file/file-4.23.exheres-0 b/packages/sys-apps/file/file-4.23.exheres-0
index 0eec3a5..f721461 100644
--- a/packages/sys-apps/file/file-4.23.exheres-0
+++ b/packages/sys-apps/file/file-4.23.exheres-0
@@ -12,8 +12,10 @@ MYOPTIONS=""
 
 DEPENDENCIES=""
 
+DEFAULT_SRC_INSTALL_EXTRA_DOCS="MAINT"
+
 src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc ChangeLog MAINT PORTING README
+    default
+
     rmdir "${D}"/usr/share/man/man5
 }
diff --git a/packages/sys-apps/findutils/findutils-4.3.8.exheres-0 b/packages/sys-apps/findutils/findutils-4.3.8.exheres-0
index 6ab347f..59c1cd3 100644
--- a/packages/sys-apps/findutils/findutils-4.3.8.exheres-0
+++ b/packages/sys-apps/findutils/findutils-4.3.8.exheres-0
@@ -16,9 +16,10 @@ src_configure() {
     econf $(option_enable nls) || die "Configure failed."
 }
 
+DEFAULT_SRC_INSTALL_EXTRA_DOCS="ABOUT-NLS README-alpha INSTALL"
+
 src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc ABOUT-NLS AUTHORS INSTALL NEWS README README-alpha THANKS TODO
+    default
+
     rmdir "${D}"/var{/lib,}
 }
-
diff --git a/packages/sys-apps/grep/grep-2.5.1a.exheres-0 b/packages/sys-apps/grep/grep-2.5.1a.exheres-0
index fd00fbb..7eedb77 100644
--- a/packages/sys-apps/grep/grep-2.5.1a.exheres-0
+++ b/packages/sys-apps/grep/grep-2.5.1a.exheres-0
@@ -19,9 +19,4 @@ src_configure() {
     econf --bindir=/bin $(option_enable nls) || die "Configure failed."
 }
 
-src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc ABOUT-NLS AUTHORS ChangeLog INSTALL NEWS \
-            README README-alpha THANKS TODO
-}
-
+DEFAULT_SRC_INSTALL_EXTRA_DOCS="ABOUT-NLS INSTALL README-alpha"
diff --git a/packages/sys-apps/hdparm/hdparm-7.7.exheres-0 b/packages/sys-apps/hdparm/hdparm-7.7.exheres-0
index 48aae4a..d1ffc51 100644
--- a/packages/sys-apps/hdparm/hdparm-7.7.exheres-0
+++ b/packages/sys-apps/hdparm/hdparm-7.7.exheres-0
@@ -11,8 +11,3 @@ PLATFORMS="~amd64 ~ia64 ~x86"
 MYOPTIONS=""
 
 DEPENDENCIES=""
-
-src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc README.acoustic TODO
-}
diff --git a/packages/sys-apps/help2man/help2man-1.36.4.exheres-0 b/packages/sys-apps/help2man/help2man-1.36.4.exheres-0
index a35c66a..457daef 100644
--- a/packages/sys-apps/help2man/help2man-1.36.4.exheres-0
+++ b/packages/sys-apps/help2man/help2man-1.36.4.exheres-0
@@ -14,8 +14,4 @@ DEPENDENCIES="
     build:
         dev-perl/Locale-gettext"
 
-src_install() {
-    # Install target isn't parallel safe.
-    make DESTDIR="${D}" install || die "Install failed."
-    dodoc INSTALL NEWS README THANKS
-}
+DEFAULT_SRC_INSTALL_EXTRA_DOCS="INSTALL"
diff --git a/packages/sys-apps/kbd/kbd-1.12.exheres-0 b/packages/sys-apps/kbd/kbd-1.12.exheres-0
index d51fb8f..80636b6 100644
--- a/packages/sys-apps/kbd/kbd-1.12.exheres-0
+++ b/packages/sys-apps/kbd/kbd-1.12.exheres-0
@@ -17,9 +17,11 @@ src_configure() {
     ./configure || die "Configure failed."
 }
 
+DEFAULT_SRC_INSTALL_EXTRA_DOCS="INSTALL"
+
 src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc CHANGES CREDITS README
+    default
+    
     cp -r doc/* ${D}/usr/share/doc/${P}/
     rmdir "${D}"/usr/share/locale/{da,fr,sv,tr}/{LC_MESSAGES,}
 }
diff --git a/packages/sys-apps/less/less-418.exheres-0 b/packages/sys-apps/less/less-418.exheres-0
index 99d2379..6f97771 100644
--- a/packages/sys-apps/less/less-418.exheres-0
+++ b/packages/sys-apps/less/less-418.exheres-0
@@ -12,7 +12,5 @@ MYOPTIONS=""
 
 DEPENDENCIES=""
 
-src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc INSTALL NEWS README
-}
+DEFAULT_SRC_INSTALL_EXTRA_DOCS="INSTALL"
+DEFAULT_SRC_INSTALL_EXCLUDE="install.sh"
diff --git a/packages/sys-apps/man-pages/man-pages-2.78.exheres-0 b/packages/sys-apps/man-pages/man-pages-2.78.exheres-0
index 94b6d8d..f8d2f5b 100644
--- a/packages/sys-apps/man-pages/man-pages-2.78.exheres-0
+++ b/packages/sys-apps/man-pages/man-pages-2.78.exheres-0
@@ -20,6 +20,4 @@ src_compile() {
     :
 }
 
-src_install() {
-    emake prefix="${D}/usr" install || die "Install failed."
-}
+DEFAULT_SRC_INSTALL_PARAMS="prefix=/usr"
diff --git a/packages/sys-apps/man/man-1.6e.exheres-0 b/packages/sys-apps/man/man-1.6e.exheres-0
index 6173ff3..f080664 100644
--- a/packages/sys-apps/man/man-1.6e.exheres-0
+++ b/packages/sys-apps/man/man-1.6e.exheres-0
@@ -16,7 +16,3 @@ DEPENDENCIES="run:
 src_configure() {
     ./configure -default
 }
-
-src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-}
diff --git a/packages/sys-apps/module-init-tools/module-init-tools-3.2.2-r1.exheres-0 b/packages/sys-apps/module-init-tools/module-init-tools-3.2.2-r1.exheres-0
index a2e9b75..8a8485a 100644
--- a/packages/sys-apps/module-init-tools/module-init-tools-3.2.2-r1.exheres-0
+++ b/packages/sys-apps/module-init-tools/module-init-tools-3.2.2-r1.exheres-0
@@ -19,8 +19,10 @@ src_configure() {
     econf --exec-prefix=/ || die "econf failed"
 }
 
+DEFAULT_SRC_INSTALL_EXTRA_DOCS="CODING"
+
 src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc AUTHORS CODING ChangeLog FAQ NEWS README TODO
+    default
+
     dosym ../bin/lsmod /sbin/lsmod
 }
diff --git a/packages/sys-apps/paludis/paludis-scm.exheres-0 b/packages/sys-apps/paludis/paludis-scm.exheres-0
index ebd4e9e..a4ccc72 100644
--- a/packages/sys-apps/paludis/paludis-scm.exheres-0
+++ b/packages/sys-apps/paludis/paludis-scm.exheres-0
@@ -76,9 +76,8 @@ src_configure() {
 }
 
 src_install() {
-    emake DESTDIR="${D}" install
-    dodoc AUTHORS README ChangeLog NEWS
-
+    default
+    
     local bashcomp bashcompletions
     bashcompletions="accerso adjutrix contrarius
         importare $(optionv inquisitio) instruo
diff --git a/packages/sys-apps/pciutils/pciutils-2.2.10.exheres-0 b/packages/sys-apps/pciutils/pciutils-2.2.10.exheres-0
index d3abe7d..05cf0f1 100644
--- a/packages/sys-apps/pciutils/pciutils-2.2.10.exheres-0
+++ b/packages/sys-apps/pciutils/pciutils-2.2.10.exheres-0
@@ -29,6 +29,4 @@ src_compile() {
     emake OPT="${CFLAGS}" || die "emake failed"
 }
 
-src_install() {
-    make install install-lib DESTDIR="${D}" || die "make install failed"
-}
+DEFAULT_SRC_INSTALL_PARAMS="install-lib"
diff --git a/packages/sys-apps/sandbox/sandbox-1.2.18.1-r3.exheres-0 b/packages/sys-apps/sandbox/sandbox-1.2.18.1-r3.exheres-0
index 34dd58d..189bbc4 100644
--- a/packages/sys-apps/sandbox/sandbox-1.2.18.1-r3.exheres-0
+++ b/packages/sys-apps/sandbox/sandbox-1.2.18.1-r3.exheres-0
@@ -21,13 +21,11 @@ DEFAULT_SRC_PREPARE_PATCHES=(
 )
 
 src_install() {
-    emake DESTDIR="${D}" install || die "install failed"
+    default
 
     keepdir /var/log/sandbox
     fowners root:paludisbuild /var/log/sandbox
     fperms 0770 /var/log/sandbox
-
-    dodoc AUTHORS ChangeLog NEWS README
 }
 
 pkg_preinst() {
diff --git a/packages/sys-apps/sed/sed-4.1.5.exheres-0 b/packages/sys-apps/sed/sed-4.1.5.exheres-0
index 9df34b6..1c0d2f3 100644
--- a/packages/sys-apps/sed/sed-4.1.5.exheres-0
+++ b/packages/sys-apps/sed/sed-4.1.5.exheres-0
@@ -15,8 +15,3 @@ DEPENDENCIES=""
 src_configure() {
     econf --bindir=/bin || die "Configure failed."
 }
-
-src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc AUTHORS BUGS ChangeLog NEWS README* THANKS
-}
diff --git a/packages/sys-apps/setarch/setarch-2.0.exheres-0 b/packages/sys-apps/setarch/setarch-2.0.exheres-0
index 850b735..455c634 100644
--- a/packages/sys-apps/setarch/setarch-2.0.exheres-0
+++ b/packages/sys-apps/setarch/setarch-2.0.exheres-0
@@ -17,7 +17,3 @@ src_unpack() {
     cd "${S}"
     cp "${FILESDIR}/Makefile" . || die
 }
-
-src_install() {
-    emake install DESTDIR="${D}" || die
-}
diff --git a/packages/sys-apps/syslog-ng/syslog-ng-2.0.5.exheres-0 b/packages/sys-apps/syslog-ng/syslog-ng-2.0.5.exheres-0
index afa32b7..da69e78 100644
--- a/packages/sys-apps/syslog-ng/syslog-ng-2.0.5.exheres-0
+++ b/packages/sys-apps/syslog-ng/syslog-ng-2.0.5.exheres-0
@@ -21,8 +21,3 @@ src_configure() {
         $(option_enable tcp-wrappers) \
         || die "Configure failed."
 }
-
-src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc ChangeLog NEWS README VERSION
-}
diff --git a/packages/sys-apps/texinfo/texinfo-4.9.exheres-0 b/packages/sys-apps/texinfo/texinfo-4.9.exheres-0
index 710b02c..7e48e84 100644
--- a/packages/sys-apps/texinfo/texinfo-4.9.exheres-0
+++ b/packages/sys-apps/texinfo/texinfo-4.9.exheres-0
@@ -23,9 +23,5 @@ src_configure() {
     econf $(option_enable nls) || die "Configure failed."
 }
 
-src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc ABOUT-NLS AUTHORS ChangeLog* INSTALL* INTRODUCTION \
-        NEWS README* TODO
-}
-
+DEFAULT_SRC_INSTALL_EXTRA_DOCS="ABOUT-NLS INSTALL INTRODUCTION"
+DEFAULT_SRC_INSTALL_EXCLUDE="install-sh"
diff --git a/packages/sys-apps/upstart/upstart-0.3.9.exheres-0 b/packages/sys-apps/upstart/upstart-0.3.9.exheres-0
index 1b99bfd..1d576cc 100644
--- a/packages/sys-apps/upstart/upstart-0.3.9.exheres-0
+++ b/packages/sys-apps/upstart/upstart-0.3.9.exheres-0
@@ -17,8 +17,3 @@ WANT_AUTOMAKE="1.10"
 src_configure() {
     econf --exec-prefix="/" || die "Configure failed."
 }
-
-src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-}
-
diff --git a/packages/sys-apps/util-linux/util-linux-2.12r.exheres-0 b/packages/sys-apps/util-linux/util-linux-2.12r.exheres-0
index d7b2072..23aa804 100644
--- a/packages/sys-apps/util-linux/util-linux-2.12r.exheres-0
+++ b/packages/sys-apps/util-linux/util-linux-2.12r.exheres-0
@@ -14,8 +14,4 @@ DEPENDENCIES=""
 
 DEFAULT_SRC_PREPARE_PATCHES="${FILESDIR}/${P}-llseek.patch"
 
-src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc HISTORY MAINTAINER README VERSION
-}
-
+DEFAULT_SRC_INSTALL_EXTRA_DOCS="VERSION"
diff --git a/packages/sys-apps/which/which-2.18.exheres-0 b/packages/sys-apps/which/which-2.18.exheres-0
index 603b168..ced68d7 100644
--- a/packages/sys-apps/which/which-2.18.exheres-0
+++ b/packages/sys-apps/which/which-2.18.exheres-0
@@ -12,7 +12,4 @@ MYOPTIONS=""
 
 DEPENDENCIES=""
 
-src_install() {
-    emake DESTDIR="${D}" install || die "Install failed."
-    dodoc AUTHORS EXAMPLES INSTALL NEWS README README.alias
-}
+DEFAULT_SRC_INSTALL_EXTRA_DOCS="EXAMPLES INSTALL"
-- 
1.5.5.4



      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr



More information about the Exherbo-dev mailing list