Commit graph

83 commits

Author SHA1 Message Date
Mathieu Arnold
9097255acf Try to be more helpful to our users, and keep all the possible versions
close to their default value in Mk/bsd.default-versions.mk.

Sponsored by:	Absolight
2016-04-14 13:34:25 +00:00
Jan Beich
88360e4c12 Consistently prefer ${CONFIGURE_CMD} over ./${CONFIGURE_SCRIPT}
This also fixes SET_LATE_CONFIGURE_ARGS with custom CONFIGURE_CMD.

PR:		208294
Exp-run by:	antoine
Approved by:	portmgr (antoine), perl (mat)
Differential Revision:	https://reviews.freebsd.org/D4158
2016-04-13 10:36:15 +00:00
Baptiste Daroussin
421767bd88 Remove the now unneeded ${PORTSDIR} from dependency definition in
The infrastructure Makefiles

PR:		206569
Exp run by:	antoine
Differential Revision:	D5047
2016-03-27 01:23:25 +00:00
Rene Ladan
e603983d54 Remove lang/perl5.16 and the support bits in perl5.mk, it is no longer
supported and expired today.

Approved by:	portmgr (mat), perl (sunpoet)
Differential Revision:	https://reviews.freebsd.org/D4745
2015-12-31 21:06:14 +00:00
Bryan Drewery
ab43229f76 Fix partial tree checkouts with 'all-depends-list', 'make clean', etc, after
inclusion of the ports_env feature into that handling around r399791.

With hat:	portmgr
Reported by:	ian, lev
2015-11-09 18:52:19 +00:00
Bryan Drewery
ef91c74363 Avoid redundantly looking up perl version when looking up dependencies or in sub-makes.
With hat:	portmgr
2015-10-19 20:53:15 +00:00
Baptiste Daroussin
8cea2b0147 Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched
This gives more time for tools to get updated, available in packages etc before
bothering users
2015-10-15 07:36:38 +00:00
Baptiste Daroussin
9b1ed98e60 Temporary readd ${PORTSDIR} to perl5 deps as somewhow they are triggering
an issue with sanify check in poudriere that needs to be fixed first

Reported by:	adamw
2015-10-14 20:44:34 +00:00
Baptiste Daroussin
869e1f27d0 Drop the necessity to add ${PORTSDIR} to dependency line
Modify make describe to automatically prepend ${PORTSDIR} if the path for the
port is not absolute

Checked with poudriere, portmaster, portupgrade

PR:		203685
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D3866
2015-10-14 16:49:35 +00:00
Dmitry Marakasov
70a6c7d89d - Fix compatibility with fmake
Approved by:	portmgr blanket
2015-10-07 18:45:28 +00:00
Dmitry Marakasov
9a33f6f65c Do not provide empty do-test target for perl5-using ports
perl5's do-test: target should only be enabled when USE_PERL5=configure
or USE_PERL5=modbuild* are used, otherwise it'll end up being empty
and will prevent other tests from running.

Remove NO_PERL5_TEST as it isn't really needed after this fix.

Approved by:	mat, sunpoet
Differential Revision:	D3830
2015-10-07 16:19:43 +00:00
Sunpoet Po-Chuan Hsieh
d1781c2e30 - Add NO_PERL5_TEST: allow ports with USES=perl5 to run default do-test: defined in bsd.port.mk
- Fix comment
2015-10-03 17:06:52 +00:00
Dmitry Marakasov
5c57225987 Implemented complete support for test target.
You can now `make test' on any port to run test sequence, no-op by default.
If a port defines TEST_TARGET, it'll run sub-make with specified target,
usually `check' or `test', useful if upstream supports that. The port may
instead define custom do-test target, as well as usual satellite targets:

  {pre,do,post}-test, {pre,do,post}-test-OPT, {pre,do,post}-test-OPT-off

`make test' builds and stages port first, so test may use both WRKDIR and
STAGEDIR, and both BUILD and RUN depends are available for test target.
Additionally, TEST_DEPENDS is now properly supported and may be used to
define additional depends specifically for testing.

Framework may define default tests for specific cases. For instance,
perl5.mk and cran.mk already provide default test target on their own.

This commit also converts my ports which have tests to this new framework.

Approved by:	portmgr (bapt)
Differential Revision:	D3680
2015-09-28 17:20:42 +00:00
Mathieu Arnold
afae652a2a Make it so that the default Perl is always called perl5.
- Move Perl's man1 files along with its man3 files.
- Move where Perl installs its modules man1 pages.
- Convert the ports installing man1 pages.
- Make different Perl versions installable at the same time.
  Though you should note that only the default version can be used to
  install Perl modules, and the non default Perl versions cannot use the
  modules installed via ports if they contain .so as they are installed
  in a version specific directory.

Reviewed by:	bapt (the Mk bits)
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3542
2015-09-14 12:19:48 +00:00
Mathieu Arnold
398dca09df To ease up with future upgrades, move PERL_VERSION into a separate file.
While there, remove 8.4 support, and do some cleanup.

Sponsored by:	Absolight
2015-08-31 13:17:48 +00:00
Mathieu Arnold
1118f8ad40 Bump perl5-devel's PERL_VERSION.
Pointy hat to:	mat
Sponsored by:	Absolight
2015-08-24 14:37:18 +00:00
Mathieu Arnold
e8796ef612 Rewrite the target ordering code.
The targets now have priority assigned to them, and, when the dependency
ordering magic is done at the end of bsd.port.mk, they are sorted
according to their priority.

This allows USES to add targets easily and have them run whenever they
want without touching bsd.port.mk.

To add a target that runs just before post-configure run, do:

_USES_configure+=  695:my-post-configure
my-post-configure:
	do something

To fine tune when the target is ran, look at the values in the *_SEQ
variables at the end of bsd.port.mk, and the other USES.

Allow ports Makefiles to override the priority of targets with the
TARGET_ORDER_OVERRIDE variable.  For example, to get post-install
running earlier, (its default is 700) do:

TARGET_ORDER_OVERRIDE=	  650:post-install

While there, add options target helpers for the do-* targets when they
exist.

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3099
2015-08-17 13:31:25 +00:00
Mathieu Arnold
8e790fd161 Bump here too.
Sponsored by:	Absolight
2015-07-27 19:32:06 +00:00
Sunpoet Po-Chuan Hsieh
06278b0580 - Fix regression-test: TEST_ARGS and TEST_ENV should be overwritable 2015-07-06 17:48:04 +00:00
Mathieu Arnold
889d0db079 Forgotten bit from r390291.
Sponsored by:	Absolight
2015-06-22 13:44:52 +00:00
Mathieu Arnold
b4101d50a0 Update lang/perl5.22 to 5.22.0, and lang/perl5-devel to 5.23.0-ish.
Sponsored by:	Absolight
2015-06-01 18:55:45 +00:00
Mathieu Arnold
ec940a12b6 Welcome lang/perl5.22 to te tree, currently at 5.22.0-RC2
Changes:	https://metacpan.org/pod/release/RJBS/perl-5.22.0-RC2/pod/perldelta.pod
Sponsored by:	Absolight
2015-05-26 14:44:06 +00:00
Mathieu Arnold
14e7f7aba9 Update to v5.22.0-RC2-1-gdfd03a6.
Cleanup a bit the PKGNAMESUFFIX calculation.
Also force the PERL_PORT variable for the -devel one, in case there is more
than one with the same version.

Changes:	https://github.com/Perl/perl5/compare/v5.22.0-RC1...v5.22.0-RC2-1-gdfd03a6
Sponsored by:	Absolight
2015-05-26 12:10:11 +00:00
Mathieu Arnold
3a9ebde7bd Catch up with lang/perl5-devel, add a permanent way to ask for -devel.
Sponsored by:	Absolight
2015-05-11 14:24:21 +00:00
Mathieu Arnold
fc722249ab Forgot that when I updated Perl lang/perl5-devel.
Sponsored by:	Absolight
2015-04-27 15:44:03 +00:00
Mathieu Arnold
d7534a0d39 Add lang/perl5-devel, which will be the one from which the lang/perl5.xx ports
will come from, from now on.

Please, only use the -devel port for testing, not for production purposes.

Sponsored by:	Absolight
2015-04-16 11:44:21 +00:00
Mathieu Arnold
898d0049d2 Update Perl 5.20 to 5.20.2.
Poked by:	az
Sponsored by:	Absolight
2015-02-17 15:58:12 +00:00
Rene Ladan
0302c0c1ae Mk/Uses/perl5.mk: Unregister perl5.14 now that the port has expired.
Differential Revision:	https://reviews.freebsd.org/D1368
Approved by:	portmgr (mat), perl (sunpoet)
2014-12-31 16:04:29 +00:00
Mathieu Arnold
b461de3535 Catch other wrong occurences of SITE_PERL and SITE_ARCH.
Sponsored by:	Absolight
2014-12-23 01:42:10 +00:00
Mathieu Arnold
f5a08b399f Fix MANDIRS.
Submitted by:	John Hein
Sponsored by:	Absolight
2014-12-23 01:32:18 +00:00
Mathieu Arnold
64835f0cdc Make Perl link all .so it builds with libperl.so.
It makes upgrading from one Perl major version to another way easier.  For
binary package users, it means pkg upgrade will detect the libperl.so.x.yy
change, and reinstall the affected packages.  For users using ports, it will
save rebuild time as it's easier to detect what ports really need to be
rebuilt.

PR:		195821
Differential Revision: https://reviews.freebsd.org/D1241
Submitted by:	mat
Reviewed by:	antoine, bdrewery
Exp-run by:	antoine
With hat:	perl
Sponsored by:	Absolight
2014-12-17 13:21:56 +00:00
Mathieu Arnold
d29deb1c06 ts=8, repeat after me, ts=8.
With hat:	perl@
Sponsored by:	Absolight
2014-12-16 12:06:40 +00:00
Sunpoet Po-Chuan Hsieh
fc96e70c88 - Use FIND 2014-12-13 04:02:02 +00:00
Mathieu Arnold
4815f5f8ca Use TMPPLIST, not PLIST.
Sponsored by:	Absolight
2014-11-27 13:14:24 +00:00
Mathieu Arnold
aad75afca1 No need to output what this does.
Pointy hat to:	myself
Sponsored by:	Absolight
2014-11-27 10:04:47 +00:00
Mathieu Arnold
8e245f6ddc - Bring back the .packlist files, many people need them, they will
automatically added to the plists.
- Add soname to libperl.so and rename it to libperl.so.PERL_VER, for instance
  libperl.so.5.18. To keep software linked with it working, provide a
  libperl.so symlink.
- Rollback Perl's man page location change, it creates conflicts for the few
  modules that ship with Perl and are in the ports tree.

Sponsored by:	Absolight
2014-11-27 09:57:39 +00:00
Mathieu Arnold
eee58d187e Change the way Perl modules are installed, update the default Perl to 5.18.
Before, we had:

  site_perl :           lib/perl5/site_perl/5.18
  site_perl/perl_arch : lib/perl5/site_perl/5.18/mach
  perl_man3 :           lib/perl5/5.18/man/man3

Now we have:

  site_perl : lib/perl5/site_perl
  site_arch : lib/perl5/site_perl/mach/5.18
  perl_man3 : lib/perl5/site_perl/man/man3

Modules without any .so will be installed at the same place regardless of the
Perl version, minimizing the upgrade when the major Perl version is changed.
It uses a version dependent directory for modules with compiled bits.

As PERL_ARCH is no longer needed in plists, it has been removed from
PLIST_SUB.

The USE_PERL5=fixpacklist keyword is removed, the .packlist file is now
always removed, as is perllocal.pod.

The old site_perl and site_perl/arch directories have been kept in the
default Perl @INC for all Perl ports, and will be phased out as these old
Perl versions expire.

PR:		194969
Differential Revision:	https://reviews.freebsd.org/D1019
Exp-run by:	antoine
Reviewed by:	perl@
Approved by:	portmgr
2014-11-26 13:08:24 +00:00
Sunpoet Po-Chuan Hsieh
dafd91f384 - Update to 0.039
Changes:	http://search.cpan.org/dist/Module-Build-Tiny/Changes
2014-11-24 18:25:39 +00:00
Mathieu Arnold
6be72a854b Introduce the SITE_ARCH variable containing SITE_PERL/PERL_ARCH.
With hat:	perl@, portmgr@
Sponsored by:	Absolight
2014-11-18 13:45:56 +00:00
Mathieu Arnold
906630d192 And remember to bump versions here too.
Sponsored by:	Absolight
2014-10-17 22:04:25 +00:00
Tijl Coosemans
fe837ee6c6 Change the way USES is handled:
- Loop over USES twice, once to define all *_ARGS variables and once to
  include Uses/*.mk.  This allows all Uses/*.mk to examine arguments given
  to other USES entries.
- Always define *_ARGS (possibly empty) and replace commas with spaces.

Similar for _USES_POST.

Adjust all Uses/*.mk:
- defined(u_ARGS) becomes !empty(u_ARGS)
- Eliminate helper variables like _*_ARGS=${*_ARGS:C/,/ /g}
- Some Uses/*.mk used ":" as argument separator instead of ",", but no port
  used this form
- Uses/cran.mk: remove unused variable VALID_ARGS and USES+=fortran which
  has no effect
- Uses/twisted.mk: simplify handling of the case where neither "build" nor
  "run" arguments have been specified

PR:		193931
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-09-28 16:36:31 +00:00
Matthias Andree
008fe1b949 Fix shell commands in fix-packlist,
A. avoiding a bogus *** Error code 1 (ignored) on ports that
1. set at least one of the configure, modbuildtiny, or fixpacklist options
   to USES_PERL5=..., AND
2. do not create/install into
   ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/auto

B. no longer masking ${FIND} trouble through the leading - on the
   Makefile commands.

PR:		193934
Approved by:	portmgr (bdrewery)
2014-09-25 20:38:32 +00:00
Sunpoet Po-Chuan Hsieh
3dff6f4096 - Update to 0.038
Changes:	http://search.cpan.org/dist/Module-Build-Tiny/Changes
2014-09-08 16:21:28 +00:00
Sunpoet Po-Chuan Hsieh
90038a12c7 - Fix typo 2014-08-18 12:45:10 +00:00
Mathieu Arnold
a4ed4cb68b Module::Build installs the empty bootstrap files, even with Perl 5.20, so
remove the .if and always search and delete them.

Noticed by:	pi
Sponsored by:	Absolight
2014-08-18 12:29:06 +00:00
Kurt Jaeger
ebd71b456c revert r365227 to allow discussion 2014-08-17 19:36:31 +00:00
Kurt Jaeger
4217bc67cd Mk/Uses/perl5.mk: Fix logic for removal of empty .bs files 2014-08-17 19:32:18 +00:00
Sunpoet Po-Chuan Hsieh
a7abdeb20e - Update to 0.037
Changes:	http://search.cpan.org/dist/Module-Build-Tiny/Changes
2014-07-28 15:50:22 +00:00
Yen-Ming Lee
1f78956cba - update Module-Build to 0.4206 2014-07-15 06:19:31 +00:00
Mathieu Arnold
61de712f46 Remove all the bootstrap files (.bs) from the plists.
Starting with perl 5.20, they're not installed any more if empty,
and on FreeBSD, they're (always ?) empty.

PR:		190681
Submitted by:	mat
Exp-Run by:	antoine
Sponsored by:	Absolight
2014-06-10 12:14:12 +00:00