Skip to content

Commit

Permalink
Framework: sync with upstream
Browse files Browse the repository at this point in the history
Taken from: FreeBSD
  • Loading branch information
fichtner committed Apr 29, 2016
1 parent 871dd08 commit f2b41fc
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ in the release notes and/or placed into UPDATING.

All ports committers are allowed to commit to this file.

20160428
AUTHOR: [email protected]

USE_RUBYGEMS has been replaced by USES=gem.

20160426:
AUTHOR: [email protected]

Expand Down
6 changes: 3 additions & 3 deletions Mk/Uses/gem.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
# Support rubygem packages
#
# Feature: gem
# Usage: USES=gem[:autoplist]
# Valid args: autoplist Automatically generate packing list
# Usage: USES=gem[:noautoplist]
# Valid args: noautoplist Don't generate the plist automatically
#
# MAINTAINER: [email protected]

.if !defined(_INCLUDE_USES_GEM_MK)

_INCLUDE_USES_GEM_MK= yes

_valid_ARGS= autoplist noautoplist
_valid_ARGS= noautoplist

# Sanity check
.for arg in ${gem_ARGS}
Expand Down
6 changes: 3 additions & 3 deletions Mk/Uses/python.mk
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ _INCLUDE_USES_PYTHON_MK= yes
_PYTHON_VERSIONS= 2.7 3.4 3.5 3.3 # preferred first
_PYTHON_PORTBRANCH= 2.7 # ${_PYTHON_VERSIONS:[1]}
_PYTHON_BASECMD= ${LOCALBASE}/bin/python
_PYTHON_RELPORTDIR= ${PORTSDIR}/lang/python
_PYTHON_RELPORTDIR= lang/python

# Make each individual feature available as _PYTHON_FEATURE_<FEATURENAME>
.for var in ${USE_PYTHON}
Expand Down Expand Up @@ -396,8 +396,8 @@ PYTHON_REL= # empty
PYTHON_ABIVER= # empty
PYTHON_PORTSDIR= ${_PYTHON_RELPORTDIR}${PYTHON_SUFFIX}
# Protect partial checkouts from Mk/Scripts/functions.sh:export_ports_env().
.if !defined(_PORTS_ENV_CHECK) || exists(${PYTHON_PORTSDIR})
.include "${PYTHON_PORTSDIR}/Makefile.version"
.if !defined(_PORTS_ENV_CHECK) || exists(${PORTSDIR}/${PYTHON_PORTSDIR})
.include "${PORTSDIR}/${PYTHON_PORTSDIR}/Makefile.version"
.endif
# Create a 4 integer version string, prefixing 0 to the last token if
# it's a single character. Only use the the first 3 tokens of
Expand Down
8 changes: 4 additions & 4 deletions Mk/bsd.ocaml.mk
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,25 @@ OCAML_SITELIBDIR?= ${OCAML_LIBDIR}/site-lib
#
# OCaml compiler port dependency
#
OCAMLC_PORT?= ${PORTSDIR}/lang/ocaml
OCAMLC_PORT?= lang/ocaml
OCAMLC_DEPEND?= ${OCAMLC}:${OCAMLC_PORT}

#
# OCaml package manager port dependency
#
OCAMLFIND_PORT?= ${PORTSDIR}/devel/ocaml-findlib
OCAMLFIND_PORT?= devel/ocaml-findlib
OCAMLFIND_DEPEND?= ${OCAMLFIND}:${OCAMLFIND_PORT}

#
# OCaml camlp4 port dependency
#
CAMLP4_PORT?= ${PORTSDIR}/devel/ocaml-camlp4
CAMLP4_PORT?= devel/ocaml-camlp4
CAMLP4_DEPEND?= ${CAMLP4}:${CAMLP4_PORT}

#
# OCaml TK bindings dependency
#
OCAMLTK_PORT?= ${PORTSDIR}/x11-toolkits/ocaml-labltk
OCAMLTK_PORT?= x11-toolkits/ocaml-labltk
OCAMLTK_DEPENDS?= ${OCAMLTK}:${OCAMLTK_PORT}

#
Expand Down
13 changes: 12 additions & 1 deletion Mk/bsd.port.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4328,6 +4328,17 @@ ${deptype:tl}-depends:
_UNIFIED_DEPENDS=${PKG_DEPENDS} ${EXTRACT_DEPENDS} ${PATCH_DEPENDS} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS} ${TEST_DEPENDS}
_DEPEND_SPECIALS= ${_UNIFIED_DEPENDS:M*\:*\:*:C,^[^:]*:([^:]*):.*$,\1,}

.for d in ${_UNIFIED_DEPENDS:M*\:/*}
# Fight .for variable interpolation differently for each version of make...
.if defined(.PARSEDIR)
_PORTSDIR_STR= $${PORTSDIR}/
DEV_WARNING+= "It looks like the ${d} depends line has an absolute port origin, make sure to remove \$${_PORTSDIR_STR} from it."
.else
_PORTSDIR_STR= $$$${PORTSDIR}/
DEV_WARNING+= "It looks like the ${d} depends line has an absolute port origin, make sure to remove \$${_PORTSDIR_STR} from it."
.endif
.endfor

all-depends-list:
@${ALL-DEPENDS-LIST}

Expand Down Expand Up @@ -5613,7 +5624,7 @@ show-dev-warnings:
@${ECHO_MSG} "/!\\ ${PKGNAME}: Makefile warnings, please consider fixing /!\\"
@${ECHO_MSG}
.for m in ${DEV_WARNING}
@${ECHO_MSG} "${m}"
@${ECHO_MSG} ${m}
.endfor
@${ECHO_MSG}
.if defined(DEV_WARNING_FATAL)
Expand Down

0 comments on commit f2b41fc

Please sign in to comment.