1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

4264 Commits

Author SHA1 Message Date
Antoine Brodin
32d4470be8 Reduce the number of false positives reported by the shebang qa check
by looking only at files and symlinks in bin, sbin and libexec

Reviewed by:	bdrewery
With hat:	portmgr
2014-04-12 20:48:04 +00:00
Bryan Drewery
4070b12551 - Add a @sample plist keyword
It accepts a file (must end in .sample, this is not configurable):

    @sample file.conf.sample

  This will install file.conf.sample and copy it to file.conf. The file.conf
  will be removed if it matches file.conf.sample on deinstall.

  This replaces older patterns of:

    @unexec if cmp -s %D/etc/pkgtools.conf %D/etc/pkgtools.conf.sample; then rm -f %D/etc/pkgtools.conf; fi
    etc/pkgtools.conf.sample
    @exec [ -f %B/pkgtools.conf ] || cp %B/%f %B/pkgtools.conf

  [1] This somewhat obsoletes work in ports/157168 which added CONF_FILES,
      but we have been moving towards more logic in pkg-plist where possible
      and less magical macros. Though this thinking does clash with autoplist
      ideas. We may still want CONF_FILES, which just drops a list of
      @sample entries into the plist anyway.
- Add a Keywords/pkg_install.awk and hook it into generate-plist. This is
  for pkg_install compatibility since it does not know how to read
  Keywords/sample.yaml.
  This file gives us a strategy to implement more keywords before
  pkg_install is EOL.
  Keywords are documented here:
  bffc31420b
- This needs to be documented in PH and portlint support added still.

PR:		ports/157168 [1]
Discussed with:	bapt
Reviewed by:	bapt
Requested by:	many
With hat:	portmgr
2014-04-12 03:39:02 +00:00
Kubilay Kocak
25fa2634a3 Mk/bsd.python.mk: Space to tabs in user message
Fix (replace) spaces with a tab in user message for valid Python versions.

Submitted by:	John Hein <john dot hein at microsemi dot com>
2014-04-12 03:07:31 +00:00
Brooks Davis
ad2f70940d Allow an alternative install prefix to be specified with
CMAKE_INSTALL_PREFIX.  This is similar to GNU_CONFIGURE_PREFIX and is
useful for ports that would conflict if installed directly in PREFIX.
2014-04-11 21:45:55 +00:00
Jung-uk Kim
6b6b88f5da Update comments. 2014-04-11 17:17:33 +00:00
Sunpoet Po-Chuan Hsieh
841cd91930 - Fix _JAVA_PORT_LINUX_ORACLE_JDK_1_8_INFO
- Reorder _JAVA_VENDOR_*
- Update comment

Submitted by:	sunpoet (myself)
Approved by:	bapt (portmgr)
2014-04-11 15:37:52 +00:00
Bryan Drewery
33c153382d - Make shebang a warning for now, too many false-positives in files we
do not care about.

  antoine@ is working on a better solution for this.

With hat:	portmgr
2014-04-11 14:15:57 +00:00
Baptiste Daroussin
86fffbda3c followup with recent cleanup 2014-04-11 12:45:16 +00:00
Sunpoet Po-Chuan Hsieh
9d89ae5c91 - Pet portlint: use PYTHON_DISTNAME instead of PYTHON_DISTFILE 2014-04-11 08:25:00 +00:00
Greg Lewis
713cd98aca . Set maintainer to java@FreeBSD.org. 2014-04-11 02:08:05 +00:00
Baptiste Daroussin
164f3070a4 Only include bsd.gecko.mk when USE_GECKO or WANT_GECKO is set 2014-04-10 19:20:30 +00:00
Bryan Drewery
05eb127ac5 - Fix error handling in check-config, 'exit' is not a command.
make: exec(exit) failed (No such file or directory)

 With hat:	portmgr
2014-04-10 17:03:54 +00:00
Baptiste Daroussin
39d3dbfa14 Allow to properly run make check-orphans and make makeplist for gnome ports 2014-04-10 17:02:33 +00:00
Baptiste Daroussin
f718dc1633 Remove bits replaced by USES=gecko 2014-04-10 14:46:37 +00:00
Baptiste Daroussin
2acd3c6d9c Allow regular make xdev to be used as a cross building env 2014-04-10 14:44:52 +00:00
Baptiste Daroussin
8a3c16d98f Add support for OpenJDK 1.8
Add support for Oracle JDK 1.8
Remove support for Sun JDK 1.6 (EOLed)
Remove support for USE_JAVA=1.5
2014-04-10 07:20:23 +00:00
Pawel Pekala
cc754660a3 Reset default qmake flags so that they don't taint our
globally set CFLAGS, CXXFLAGS

PR:		ports/188287
Submitted by:	myself
Approved by:	kde (makc)
2014-04-09 19:00:49 +00:00
Kubilay Kocak
bcd640815d Mk/pathfix.mk: Support more pkgconfig libdir matches
Add support for matching additional pkgconfig libdir entries
that were found in Python's Makefile.pre.in.

It can also be used by other ports [1] by setting PATHFIX_MAKEFILEIN to the
appropriate filename in ${WRKSRC}.

If this file grows support for other pathfix'es beyond Makefile's and
autoconf sources, it may be worth renaming PATHFIX_MAKEFILEIN in future
to suit the broader scope.

[1] Examples: devel/ptlib, graphics/zathura (thanks antoine)

Reviewed by:	antoine
Approved by:	antoine (exp-run)
MFH:		2014Q2
2014-04-09 12:45:54 +00:00
Baptiste Daroussin
53bf9f230c Fix dependency on thunderbird 2014-04-09 12:37:53 +00:00
Baptiste Daroussin
412cfda552 Add USES=geck to handle dependencies on the gecko engine via:
libxul, seamonkey and/or firefox
default being libxul
2014-04-09 10:28:23 +00:00
Baptiste Daroussin
c4abcef202 Drop support for non staged perl ports 2014-04-09 09:53:09 +00:00
Baptiste Daroussin
3ba7dc60bd Remove support for not staged ports
Approved by:	ruby@ (swills)
2014-04-09 09:25:29 +00:00
Koop Mast
972fe6e105 Prevent Makefile from running "gconftool-2 --makefile-install-rule". This
command is run on LOCALBASE instead of STAGEDIR.

Submitted by:	antoine@
2014-04-09 09:10:38 +00:00
Antoine Brodin
5737569545 Rewrite the sharedmimeinfo qa check so that it doesn't produce a false
positive on misc/shared-mime-info

With help from:	bdrewery
With hat:	portmgr
2014-04-08 16:50:13 +00:00
Baptiste Daroussin
e149a86133 Add compiler:gcc-c++11-lib to instrument gcc linking with libc++ on system where default stl is libc++ 2014-04-08 15:16:39 +00:00
Kubilay Kocak
51bf49a441 Welcome Python 3.4 to the FreeBSD Ports Tree!
The FreeBSD Python Team warmly welcomes Python 3.4 to the Ports tree:

- Add lang/python34
- Add devel/py-setuptools34
- Add Python 3.4.0 docs to lang/python-doc

Release Announcement and Major Features:

  https://www.python.org/download/releases/3.4.0/

This also marks the next stage of a cleaner, much-closer-to-upstream
approach to Python on FreeBSD, that builds upon the hard work of the
entire FreeBSD Python team over the last year.

This port is built "entirely" from scratch, retiring as much of the
legacy, workarounds, patches and hacks from the existing Python
ports as possible.

Of particular note: static + shared dual-build is gone, as it was flaky
at best, grossly untested upstream and caused more issues than it
solved. It is replaced by a shared build by default. The static python
library remains installed and usable.

Major changes in this structure are:

- Replace dual static and shared in-tree build with shared-only.
- Use options helpers
- Replace plat-freebsd* hacks with a lighter weight alternative
- Strip all libraries and shared extensions
- Only retain patches that are absolutely necessary
- Replace static disabled_module_list with one from upstream
- Retain NIS and sparc64 workarounds from python33
- Deprecate SEM option, no longer optional.
- Deprecate PTH option, no longer maintained or supported upstream
- Deprecate FPECTL option, no longer maintained or supported upstream
- Add upstream issue references & breadcrumb annotations where possible

Tested by:	many (Special thanks to Andrew Berg)
Reviewed by:	xmj, nemysis, antoine
2014-04-08 13:10:25 +00:00
Max Brazhnikov
1415b9ff7f Mk/bsd.options.desc.mk:
- Add description for PHONON and QT5
- Remove KDE3
2014-04-05 17:30:08 +00:00
Pawel Pekala
e58af7ef98 Document COPYTREE_BIN, COPYTREE_SHARE commands
PR:		ports/188292
Submitted by:	myself
Approved by:	portmgr (bapt)
2014-04-05 16:08:16 +00:00
Rene Ladan
283b661902 Tell the configure scripts to use ${PERL} for PERL_PATH, this fixes
e.g. devel/libbonobo

Approved by:	portmgr (bapt)
2014-04-04 11:29:07 +00:00
Baptiste Daroussin
0a1e865fd4 Fix bmake detection logic 2014-04-04 08:53:00 +00:00
Baptiste Daroussin
ccaa7208df Use bmake features to easier cross building support
This makes cross building only work with bmake given it is only supported on FreeBSD 10+ this is not a problem
2014-04-04 08:14:24 +00:00
Baptiste Daroussin
8d0a887aa5 Revert STRIPBIN adding to INSTALL_PROGRAM and INSTALL_LIB, this breaks with libtool 2014-04-03 23:01:16 +00:00
Baptiste Daroussin
e8135b1163 Fix missing space 2014-04-03 22:18:46 +00:00
Baptiste Daroussin
2c0fd1a724 Prepend install(1) command with the STRIPBIN env defined to the proper STRIPBIN to allow cross-installation
Reported by:	ian
2014-04-03 22:11:52 +00:00
Baptiste Daroussin
6ad5aba590 Define HCC and HCXX (host cc and host cxx when cross building)
Simplify what need to be defined by directly using the cc in the sysroot instead of the one in LOCALBASE/bin
which might call ${LOCALBASE}/bin/ld instead of the cross build ld (same for as) if binutils from ports is installed and a build system messes up with the CFLAGS
2014-04-03 16:29:01 +00:00
Bryan Drewery
678c058c5d - stage-qa: Fix absolute symlink check to look at target not fully resolved
path. Now tested on both good and bad symlinks.

Reported by:	antoine
Pointyhat to:	bdrewery
With hat:	portmgr
2014-04-03 14:09:00 +00:00
Baptiste Daroussin
bafe604880 Cross building is only supported for staged ports 2014-04-03 13:37:41 +00:00
Baptiste Daroussin
a0bbe9aa9f Add PKG_ENV to allow specifying the file to read the ABI from in case of cross building
Add STRIPBIN set the the cross building version of strip in MAKE_ENV so install(1) use
the proper one in case of cross building
2014-04-03 13:35:51 +00:00
Bryan Drewery
97b80d5bd4 - Fix fatal checks not exiting with non-zero [1]
This means that files referrencing stagedir or linked to stagedir will
  now be fatal errors as intended.
- Stop polluting global namespace with IFS changes
- Speedup find(1) -exec usage by execing far less
- Ignore known false-positive/harmless stagedir files in paths() [2]

Reported by:	eadler [1]
Discussed with:	antoine [2]
With hat:	portmgr
2014-04-03 13:00:17 +00:00
Max Brazhnikov
65b2b253dc KDE/FreeBSD team presents KDE SC 4.12.4 and KDE Workspace 4.11.8!
KDE ports:
- Convert to USES=tar:xz

devel/p5-perlqt, multimedia/kdemultimedia4-ffmpegthumbs:
- Convert LIB_DEPENDS to new style

devel/p5-perlqt, devel/p5-perlkde:
- Don't remove directories installed by perl port

net/kdnssd:
- moved to net/zeroconf-ioslave (renamed upstream)

x11/kdelibs4:
- Clean up non-standard shared mime files and directories after deinstall

The area51 repository features commits by Alonso Schaich
<alonsoschaich@fastmail.fm> and makc.
2014-04-03 09:49:10 +00:00
Baptiste Daroussin
c0363d7491 First bit of support to cross build the ports tree will only work
with simple ports for now, lots of improvements are pending

cd devel/pkgconf; make X_BUILD_FOR=armv6-freebsd10.0 package

Will create a armv6 ready package
Note that right now the generated package does not have the proper ABI defined
But the content is the right one
2014-04-02 16:13:44 +00:00
Bryan Drewery
85066fe55f - Add NO_PREFIX_RMDIR to allow not removing PREFIX at deinstall if it does
not match LOCALBASE. This is needed for qmail ports where they install
  to a different PREFIX (/var/qmail), but only the main qmail port should
  remove and own the dir. Otherwise permissions are incorrectly set when
  using staging.

With hat:	portmgr
2014-04-02 15:33:18 +00:00
Bryan Drewery
5416b34e37 - Simplify main target IGNORECMD handling for now. Order does not matter here.
No functional change.

With hat:	portmgr
2014-04-01 14:17:08 +00:00
Bryan Drewery
68b8b049f6 - Add comments around all of the DEP/SEQ/default target code and try to make
more understandable.

  No functional change.

With hat:	portmgr
2014-04-01 14:12:00 +00:00
Bryan Drewery
de3a95f8ff - The 2nd section of blocks here is the .else to requiring SU. Change it
so it is not relating to USE_SUBMAKE.

  No functional change.

With hat:	portmgr
2014-04-01 14:09:38 +00:00
Baptiste Daroussin
9b2e4e8528 When USES=perl5 is localed (what ever run or build depend) define a cache variable so autoconf always pick up the version from localbase
This eliminate a lot of perl related Q/A warnings
2014-03-30 14:58:51 +00:00
Antoine Brodin
6ab5e9e897 Fix a typo
Submitted by:	rene
With hat:	portmgr
2014-03-30 10:50:26 +00:00
Antoine Brodin
0e39c85753 In the DEBUG case, do not assign INSTALL_TARGET if it is not defined
With hat:	portmgr
2014-03-29 15:14:16 +00:00
Baptiste Daroussin
ba9eb09b58 Automatically convert install-strip target into install target if the debug version is being built 2014-03-28 11:23:38 +00:00
Baptiste Daroussin
db0990d2f9 Make option DEBUG work like WITH_DEBUG 2014-03-28 11:04:54 +00:00