1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00

- Remove temp file on deinstall[1]

- Unshun all installation commands
- Make PREFIX-clean

Poked by:	bdrewery [1]
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2014-03-31 22:26:09 +00:00
parent 8171d1f729
commit f8530be769
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349811
9 changed files with 54 additions and 45 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= perl
PORTVERSION= ${PERL_VERSION}
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= lang devel perl5
MASTER_SITES= CPAN \
${MASTER_SITE_LOCAL:S/$/:local/} \
@ -41,7 +41,7 @@ PERL_VERSION= 5.14.4
PERL_VER= ${PERL_VERSION:C/\.[0-9]+$//}
PERL_ARCH= mach
SITE_PERL_REL?= lib/perl5/site_perl/${PERL_VER}
SITE_PERL?= ${LOCALBASE}/${SITE_PERL_REL}
SITE_PERL?= ${PREFIX}/${SITE_PERL_REL}
USE_BZIP2= yes
HAS_CONFIGURE= yes
@ -110,8 +110,8 @@ MANDIRS+= ${MAN3PREFIX}
PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
PERL_VER=${PERL_VER} \
PERL_ARCH=${PERL_ARCH} \
MAN3=${MAN3PREFIX:S|^${LOCALBASE}/||}/man/man3 \
SITE_PERL=${SITE_PERL:S|^${LOCALBASE}/||}
MAN3=${MAN3PREFIX:S|^${PREFIX}/||}/man/man3 \
SITE_PERL=${SITE_PERL:S|^${PREFIX}/||}
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= -Doptimize="-g" -DDEBUGGING
@ -197,25 +197,25 @@ post-patch:
.endif
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/man/man3
@${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto
@${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/machine
@${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/sys
@${MKDIR} ${STAGEDIR}${SITE_PERL}/auto
@${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION}
${MKDIR} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/man/man3
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/machine
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/sys
${MKDIR} ${STAGEDIR}${SITE_PERL}/auto
${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION}
${INSTALL_DATA} ${WRKDIR}/perl5_version ${STAGEDIR}${PREFIX}/etc
.if ${OSVERSION} >= 900022
${INSTALL_DATA} ${WRKDIR}/perl-man.conf ${STAGEDIR}${PREFIX}/etc/man.d/perl${PERL_VER}.conf
.endif
.for files in ${BSDPAN_FILES}
@${MKDIR} ${STAGEDIR}${BSDPAN_DEST}/${files:H}
${MKDIR} ${STAGEDIR}${BSDPAN_DEST}/${files:H}
${INSTALL_DATA} \
${BSDPAN_WRKSRC}/${files} ${STAGEDIR}${BSDPAN_DEST}/${files}
.endfor
test: build
@(cd ${WRKSRC}; TEST_JOBS=${MAKE_JOBS_NUMBER} make test_harness)
(cd ${WRKSRC}; TEST_JOBS=${MAKE_JOBS_NUMBER} make test_harness)
regression-test: test

View File

@ -54,6 +54,7 @@ do_cleanup_manpath()
{ if (s != 1) { mode = 0 } if (mode == 0) print }' /etc/manpath.config >/etc/manpath.config.new
/bin/mv /etc/manpath.config /etc/manpath.config.bak
/bin/mv /etc/manpath.config.new /etc/manpath.config
/bin/rm /etc/manpath.config.bak
fi
}

View File

@ -3003,7 +3003,7 @@ man/man1/xsubpp.1.gz
@dirrm lib/perl5/%%PERL_VER%%/BSDPAN/ExtUtils
@dirrm lib/perl5/%%PERL_VER%%/BSDPAN
@unexec find %D/%%SITE_PERL%%/%%PERL_ARCH%%/ -name '*.ph' -delete 2>/dev/null || true
@exec cd /usr/include && %D/bin/h2ph *.h machine/*.h sys/*.h >/dev/null
@exec cd /usr/include && %D/bin/h2ph -d %D/%%SITE_PERL%%/%%PERL_ARCH%% *.h machine/*.h sys/*.h >/dev/null
%%GDBM%%@dirrm lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/auto/GDBM_File
@dirrm lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/threads
@dirrm lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/auto/threads/shared
@ -3348,13 +3348,15 @@ man/man1/xsubpp.1.gz
@exec /usr/bin/makewhatis %D/lib/perl5/%%PERL_VER%%/man
@dirrmtry lib/perl5/%%PERL_VER%%/man
@dirrmtry lib/perl5/%%PERL_VER%%
@exec install -d %D/%%SITE_PERL%%/%%PERL_ARCH%%/sys
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/sys
@exec install -d %D/%%SITE_PERL%%/%%PERL_ARCH%%/machine
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/machine
@exec install -d %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%
@dirrmtry %%SITE_PERL%%/auto
@exec install -d %D/%%SITE_PERL%%/auto
@dirrmtry %%SITE_PERL%%/auto
@dirrmtry %%SITE_PERL%%
@dirrmtry lib/perl5/site_perl
@dirrmtry lib/perl5

View File

@ -3,7 +3,7 @@
PORTNAME= perl
PORTVERSION= ${PERL_VERSION}
PORTREVISION= 8
PORTREVISION= 9
CATEGORIES= lang devel perl5
MASTER_SITES= CPAN \
${MASTER_SITE_LOCAL:S/$/:local/} \
@ -41,7 +41,7 @@ PERL_VERSION= 5.16.3
PERL_VER= ${PERL_VERSION:C/\.[0-9]+$//}
PERL_ARCH= mach
SITE_PERL_REL?= lib/perl5/site_perl/${PERL_VER}
SITE_PERL?= ${LOCALBASE}/${SITE_PERL_REL}
SITE_PERL?= ${PREFIX}/${SITE_PERL_REL}
USE_BZIP2= yes
HAS_CONFIGURE= yes
@ -110,8 +110,8 @@ MANDIRS+= ${MAN3PREFIX}
PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
PERL_VER=${PERL_VER} \
PERL_ARCH=${PERL_ARCH} \
MAN3=${MAN3PREFIX:S|^${LOCALBASE}/||}/man/man3 \
SITE_PERL=${SITE_PERL:S|^${LOCALBASE}/||}
MAN3=${MAN3PREFIX:S|^${PREFIX}/||}/man/man3 \
SITE_PERL=${SITE_PERL:S|^${PREFIX}/||}
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= -Doptimize="-g" -DDEBUGGING
@ -197,25 +197,25 @@ post-patch:
.endif
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/man/man3
@${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto
@${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/machine
@${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/sys
@${MKDIR} ${STAGEDIR}${SITE_PERL}/auto
@${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION}
${MKDIR} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/man/man3
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/machine
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/sys
${MKDIR} ${STAGEDIR}${SITE_PERL}/auto
${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION}
${INSTALL_DATA} ${WRKDIR}/perl5_version ${STAGEDIR}${PREFIX}/etc
.if ${OSVERSION} >= 900022
${INSTALL_DATA} ${WRKDIR}/perl-man.conf ${STAGEDIR}${PREFIX}/etc/man.d/perl${PERL_VER}.conf
.endif
.for files in ${BSDPAN_FILES}
@${MKDIR} ${STAGEDIR}${BSDPAN_DEST}/${files:H}
${MKDIR} ${STAGEDIR}${BSDPAN_DEST}/${files:H}
${INSTALL_DATA} \
${BSDPAN_WRKSRC}/${files} ${STAGEDIR}${BSDPAN_DEST}/${files}
.endfor
test: build
@(cd ${WRKSRC}; TEST_JOBS=${MAKE_JOBS_NUMBER} make test_harness)
(cd ${WRKSRC}; TEST_JOBS=${MAKE_JOBS_NUMBER} make test_harness)
regression-test: test

View File

@ -54,6 +54,7 @@ do_cleanup_manpath()
{ if (s != 1) { mode = 0 } if (mode == 0) print }' /etc/manpath.config >/etc/manpath.config.new
/bin/mv /etc/manpath.config /etc/manpath.config.bak
/bin/mv /etc/manpath.config.new /etc/manpath.config
/bin/rm /etc/manpath.config.bak
fi
}

View File

@ -2913,7 +2913,7 @@ man/man1/zipdetails.1.gz
@dirrm lib/perl5/%%PERL_VER%%/BSDPAN/ExtUtils
@dirrm lib/perl5/%%PERL_VER%%/BSDPAN
@unexec find %D/%%SITE_PERL%%/%%PERL_ARCH%%/ -name '*.ph' -delete 2>/dev/null || true
@exec cd /usr/include && %D/bin/h2ph *.h machine/*.h sys/*.h >/dev/null
@exec cd /usr/include && %D/bin/h2ph -d %D/%%SITE_PERL%%/%%PERL_ARCH%% *.h machine/*.h sys/*.h >/dev/null
%%GDBM%%@dirrm lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/auto/GDBM_File
@dirrm lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/threads
@dirrm lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/auto/threads/shared
@ -3251,13 +3251,15 @@ man/man1/zipdetails.1.gz
@exec /usr/bin/makewhatis %D/lib/perl5/%%PERL_VER%%/man
@dirrmtry lib/perl5/%%PERL_VER%%/man
@dirrmtry lib/perl5/%%PERL_VER%%
@exec install -d %D/%%SITE_PERL%%/%%PERL_ARCH%%/sys
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/sys
@exec install -d %D/%%SITE_PERL%%/%%PERL_ARCH%%/machine
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/machine
@exec install -d %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%
@dirrmtry %%SITE_PERL%%/auto
@exec install -d %D/%%SITE_PERL%%/auto
@dirrmtry %%SITE_PERL%%/auto
@dirrmtry %%SITE_PERL%%
@dirrmtry lib/perl5/site_perl
@dirrmtry lib/perl5

View File

@ -3,7 +3,7 @@
PORTNAME= perl
PORTVERSION= ${PERL_VERSION}
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= lang devel perl5
MASTER_SITES= CPAN \
${MASTER_SITE_LOCAL:S/$/:local/} \
@ -63,7 +63,7 @@ PERL_VERSION= 5.18.2
PERL_VER= ${PERL_VERSION:C/\.[0-9]+$//}
PERL_ARCH= mach
SITE_PERL_REL?= lib/perl5/site_perl/${PERL_VER}
SITE_PERL?= ${LOCALBASE}/${SITE_PERL_REL}
SITE_PERL?= ${PREFIX}/${SITE_PERL_REL}
USE_BZIP2= yes
HAS_CONFIGURE= yes
@ -132,8 +132,8 @@ MANDIRS+= ${MAN3PREFIX}
PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
PERL_VER=${PERL_VER} \
PERL_ARCH=${PERL_ARCH} \
MAN3=${MAN3PREFIX:S|^${LOCALBASE}/||}/man/man3 \
SITE_PERL=${SITE_PERL:S|^${LOCALBASE}/||}
MAN3=${MAN3PREFIX:S|^${PREFIX}/||}/man/man3 \
SITE_PERL=${SITE_PERL:S|^${PREFIX}/||}
.if ${PORT_OPTIONS:MDEBUG}
STRIP=
@ -182,25 +182,25 @@ post-patch:
.endif
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/man/man3
@${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto
@${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/machine
@${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/sys
@${MKDIR} ${STAGEDIR}${SITE_PERL}/auto
@${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION}
${MKDIR} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/man/man3
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/machine
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/sys
${MKDIR} ${STAGEDIR}${SITE_PERL}/auto
${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION}
${INSTALL_DATA} ${WRKDIR}/perl5_version ${STAGEDIR}${PREFIX}/etc
.if ${OSVERSION} >= 900022
${INSTALL_DATA} ${WRKDIR}/perl-man.conf ${STAGEDIR}${PREFIX}/etc/man.d/perl${PERL_VER}.conf
.endif
.for files in ${BSDPAN_FILES}
@${MKDIR} ${STAGEDIR}${BSDPAN_DEST}/${files:H}
${MKDIR} ${STAGEDIR}${BSDPAN_DEST}/${files:H}
${INSTALL_DATA} \
${BSDPAN_WRKSRC}/${files} ${STAGEDIR}${BSDPAN_DEST}/${files}
.endfor
test: build
@(cd ${WRKSRC}; TEST_JOBS=${MAKE_JOBS_NUMBER} make test_harness)
(cd ${WRKSRC}; TEST_JOBS=${MAKE_JOBS_NUMBER} make test_harness)
regression-test: test

View File

@ -54,6 +54,7 @@ do_cleanup_manpath()
{ if (s != 1) { mode = 0 } if (mode == 0) print }' /etc/manpath.config >/etc/manpath.config.new
/bin/mv /etc/manpath.config /etc/manpath.config.bak
/bin/mv /etc/manpath.config.new /etc/manpath.config
/bin/rm /etc/manpath.config.bak
fi
}

View File

@ -2938,7 +2938,7 @@ man/man1/zipdetails.1.gz
@dirrm lib/perl5/%%PERL_VER%%/BSDPAN/ExtUtils
@dirrm lib/perl5/%%PERL_VER%%/BSDPAN
@unexec find %D/%%SITE_PERL%%/%%PERL_ARCH%%/ -name '*.ph' -delete 2>/dev/null || true
@exec cd /usr/include && %D/bin/h2ph *.h machine/*.h sys/*.h >/dev/null
@exec cd /usr/include && %D/bin/h2ph -d %D/%%SITE_PERL%%/%%PERL_ARCH%% *.h machine/*.h sys/*.h >/dev/null
%%GDBM%%@dirrm lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/auto/GDBM_File
@dirrm lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/threads
@dirrm lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/auto/threads/shared
@ -3277,13 +3277,15 @@ man/man1/zipdetails.1.gz
@exec /usr/bin/makewhatis %D/lib/perl5/%%PERL_VER%%/man
@dirrmtry lib/perl5/%%PERL_VER%%/man
@dirrmtry lib/perl5/%%PERL_VER%%
@exec install -d %D/%%SITE_PERL%%/%%PERL_ARCH%%/sys
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/sys
@exec install -d %D/%%SITE_PERL%%/%%PERL_ARCH%%/machine
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/machine
@exec install -d %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%
@dirrmtry %%SITE_PERL%%/auto
@exec install -d %D/%%SITE_PERL%%/auto
@dirrmtry %%SITE_PERL%%/auto
@dirrmtry %%SITE_PERL%%
@dirrmtry lib/perl5/site_perl
@dirrmtry lib/perl5