aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-04-22 09:22:44 +0200
committerUlrich Müller <ulm@gentoo.org>2019-05-13 20:50:22 +0200
commit858a4bf9eb22523b936651861d74780843d68f19 (patch)
tree2400e0824add802cb182281dc1463df0fac7f635 /quickstart
parentquickstart: Switch to eapply (diff)
downloaddevmanual-858a4bf9eb22523b936651861d74780843d68f19.tar.gz
devmanual-858a4bf9eb22523b936651861d74780843d68f19.tar.bz2
devmanual-858a4bf9eb22523b936651861d74780843d68f19.zip
quickstart: Remove unnecessary src_install() from most examples
Remove most of src_install() redefinitions since they completely match the default. Leave the initial one for demonstration purposes, and the last one since it is more complex. Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'quickstart')
-rw-r--r--quickstart/text.xml18
1 files changed, 3 insertions, 15 deletions
diff --git a/quickstart/text.xml b/quickstart/text.xml
index 51f9962..d913374 100644
--- a/quickstart/text.xml
+++ b/quickstart/text.xml
@@ -225,11 +225,6 @@ DEPEND="${RDEPEND}
src_configure() {
econf --with-popt
}
-
-src_install() {
- emake DESTDIR="${D}" install
- dodoc README CHANGES
-}
</codesample>
<p>
@@ -241,7 +236,9 @@ variables <d/> see
</p>
<p>
-Again, we define <c>src_configure</c> and <c>src_install</c> functions.
+We define <c>src_configure</c> only. <c>src_install</c> does not need to
+be defined since the default implementation calling <c>emake install</c>
+and installing common documentation files works correctly for the package.
</p>
<p>
@@ -291,11 +288,6 @@ src_prepare() {
src_configure() {
econf --with-popt
}
-
-src_install() {
- emake DESTDIR="${D}" install
- dodoc README CHANGES
-}
</codesample>
<p>
@@ -339,10 +331,6 @@ DEPEND="!sys-libs/glibc"
src_configure() {
econf $(use_enable nls)
}
-
-src_install() {
- emake DESTDIR="${D}" install
-}
</codesample>
<p>