diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-11-22 11:21:37 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-11-22 11:21:37 +0000 |
commit | 51cf186a71dba7a51d4dc04f71e92aad4d5353ad (patch) | |
tree | 02b8bbd0f04a54fcb2e554834bf98ddf22e58395 /eclass/freebsd.eclass | |
parent | Add QA variables for textrels (a feature of how qemu works) and execstack/wx_... (diff) | |
download | gentoo-2-51cf186a71dba7a51d4dc04f71e92aad4d5353ad.tar.gz gentoo-2-51cf186a71dba7a51d4dc04f71e92aad4d5353ad.tar.bz2 gentoo-2-51cf186a71dba7a51d4dc04f71e92aad4d5353ad.zip |
Split patching and libraries rename on different functions, so that when not using freebsd_src_unpack one has not to reimplement them entirely.
Diffstat (limited to 'eclass/freebsd.eclass')
-rw-r--r-- | eclass/freebsd.eclass | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass index 3950f71a4109..39042fe158b6 100644 --- a/eclass/freebsd.eclass +++ b/eclass/freebsd.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.10 2006/10/28 22:29:14 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.11 2006/11/22 11:21:37 flameeyes Exp $ # # Diego Pettenò <flameeyes@gentoo.org> @@ -55,16 +55,13 @@ freebsd_get_bmake() { echo ${bmake} } -freebsd_src_unpack() { - unpack ${A} - cd ${S} - +freebsd_do_patches() { for patch in ${PATCHES}; do epatch ${patch} done +} - dummy_mk ${REMOVE_SUBDIRS} - +freebsd_rename_libraries() { ebegin "Renaming libraries" # We don't use libtermcap, we use libncurses find ${S} -name Makefile -print0 | xargs -0 \ @@ -76,6 +73,16 @@ freebsd_src_unpack() { eend $? } +freebsd_src_unpack() { + unpack ${A} + cd ${S} + + dummy_mk ${REMOVE_SUBDIRS} + + freebsd_do_patches + freebsd_rename_libraries +} + freebsd_src_compile() { use profile && filter-flags "-fomit-frame-pointer" use profile || \ |