| 1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/skel.ebuild,v 1.37 2006/06/20 17:51:41 genstef Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/skel.ebuild,v 1.38 2006/06/23 15:50:35 genstef Exp $ |
| 4 | |
4 | |
| 5 | # NOTE: The comments in this file are for instruction and documentation. |
5 | # NOTE: The comments in this file are for instruction and documentation. |
| 6 | # They're not meant to appear with your final, production ebuild. Please |
6 | # They're not meant to appear with your final, production ebuild. Please |
| 7 | # remember to remove them before submitting or committing your ebuild. That |
7 | # remember to remove them before submitting or committing your ebuild. That |
| 8 | # doesn't mean you can't add your own comments though. |
8 | # doesn't mean you can't add your own comments though. |
| … | |
… | |
| 132 | src_install() { |
132 | src_install() { |
| 133 | # You must *personally verify* that this trick doesn't install |
133 | # You must *personally verify* that this trick doesn't install |
| 134 | # anything outside of DESTDIR; do this by reading and |
134 | # anything outside of DESTDIR; do this by reading and |
| 135 | # understanding the install part of the Makefiles. |
135 | # understanding the install part of the Makefiles. |
| 136 | # This is the preferred way to install. |
136 | # This is the preferred way to install. |
| 137 | make DESTDIR=${D} install || die |
137 | emake DESTDIR=${D} install || die "emake install failed" |
|
|
138 | |
|
|
139 | # When you hit a failure with emake, do not just use make. It is |
|
|
140 | # better to fix the Makefiles to allow proper parallelization. |
|
|
141 | # If you fail with that, use "emake -j1", it's still better than make. |
| 138 | |
142 | |
| 139 | # For Makefiles that don't make proper use of DESTDIR, setting |
143 | # For Makefiles that don't make proper use of DESTDIR, setting |
| 140 | # prefix is often an alternative. However if you do this, then |
144 | # prefix is often an alternative. However if you do this, then |
| 141 | # you also need to specify mandir and infodir, since they were |
145 | # you also need to specify mandir and infodir, since they were |
| 142 | # passed to ./configure as absolute paths (overriding the prefix |
146 | # passed to ./configure as absolute paths (overriding the prefix |
| 143 | # setting). |
147 | # setting). |
| 144 | #make \ |
148 | #emake \ |
| 145 | # prefix=${D}/usr \ |
149 | # prefix=${D}/usr \ |
| 146 | # mandir=${D}/usr/share/man \ |
150 | # mandir=${D}/usr/share/man \ |
| 147 | # infodir=${D}/usr/share/info \ |
151 | # infodir=${D}/usr/share/info \ |
| 148 | # libdir=${D}/usr/$(get_libdir) \ |
152 | # libdir=${D}/usr/$(get_libdir) \ |
| 149 | # install || die |
153 | # install || die "emake install failed" |
| 150 | # Again, verify the Makefiles! We don't want anything falling |
154 | # Again, verify the Makefiles! We don't want anything falling |
| 151 | # outside of ${D}. |
155 | # outside of ${D}. |
| 152 | |
156 | |
| 153 | # The portage shortcut to the above command is simply: |
157 | # The portage shortcut to the above command is simply: |
| 154 | # |
158 | # |
| 155 | #einstall || die |
159 | #einstall || die "einstall failed" |
| 156 | } |
160 | } |