summaryrefslogtreecommitdiffhomepage
path: root/vars/perl.vars
blob: a011debb94fd8d77c16461507440448e8d48d006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# set -o errexit -o noglob are assumed.
#

pkg_perl_fetch_extract_post() {
	local _fname_src _fname_dst _cflag;
	(build_fileop cd "${WORKDIR}";
	for _fname_src in $(find perl-cross -type f	\
			-not -path perl-cross/.git/\* -not -name .gitignore); do
		_fname_dst="perl-${PKG_VERSION}${_fname_src#perl-cross}";
		if [ -f "${_fname_dst}" ]; then
			build_fileop mv "${_fname_dst}" "${_fname_dst}.orig";
		fi;
		if [ ! -d "$(dirname "${_fname_dst}")" ]; then
			build_fileop mkdir "$(dirname "${_fname_dst}")";
		fi;
		build_fileop cp "${_fname_src}" "${_fname_dst}";
	done);
	for _cflag in ${PKG_CFLAGS_CONFIGURE}; do
		PKG_CONFIGURE_ARGS="${PKG_CONFIGURE_ARGS:+${PKG_CONFIGURE_ARGS} }-A ccflags=${_cflag}";
	done;
};

# vim:filetype=sh