/[gentoo-x86]/eclass/haskell-cabal.eclass
Gentoo

Diff of /eclass/haskell-cabal.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.46 Revision 1.53
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.46 2014/06/27 07:26:18 slyfox Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.53 2015/08/06 08:20:33 slyfox Exp $
4 4
5# @ECLASS: haskell-cabal.eclass 5# @ECLASS: haskell-cabal.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Haskell herd <haskell@gentoo.org> 7# Haskell herd <haskell@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
29# bin -- the package installs binaries 29# bin -- the package installs binaries
30# lib -- the package installs libraries 30# lib -- the package installs libraries
31# nocabaldep -- don't add dependency on cabal. 31# nocabaldep -- don't add dependency on cabal.
32# only used for packages that _must_ not pull the dependency 32# only used for packages that _must_ not pull the dependency
33# on cabal, but still use this eclass (e.g. haskell-updater). 33# on cabal, but still use this eclass (e.g. haskell-updater).
34# ghcdeps -- constraint dependency on package to ghc onces
35# only used for packages that use libghc internally and _must_
36# not pull upper versions
34# test-suite -- add support for cabal test-suites (introduced in Cabal-1.8) 37# test-suite -- add support for cabal test-suites (introduced in Cabal-1.8)
35 38
36inherit eutils ghc-package multilib multiprocessing 39inherit eutils ghc-package multilib multiprocessing
37 40
38# @ECLASS-VARIABLE: CABAL_EXTRA_CONFIGURE_FLAGS 41# @ECLASS-VARIABLE: CABAL_EXTRA_CONFIGURE_FLAGS
39# @DESCRIPTION: 42# @DESCRIPTION:
40# User-specified additional parameters passed to 'setup configure'. 43# User-specified additional parameters passed to 'setup configure'.
41# example: /etc/portage/make.conf: CABAL_EXTRA_CONFIGURE_FLAGS=--enable-shared 44# example: /etc/portage/make.conf:
45# CABAL_EXTRA_CONFIGURE_FLAGS="--enable-shared --enable-executable-dynamic"
42: ${CABAL_EXTRA_CONFIGURE_FLAGS:=} 46: ${CABAL_EXTRA_CONFIGURE_FLAGS:=}
43 47
44# @ECLASS-VARIABLE: CABAL_EXTRA_BUILD_FLAGS 48# @ECLASS-VARIABLE: CABAL_EXTRA_BUILD_FLAGS
45# @DESCRIPTION: 49# @DESCRIPTION:
46# User-specified additional parameters passed to 'setup build'. 50# User-specified additional parameters passed to 'setup build'.
59# @DESCRIPTION: 63# @DESCRIPTION:
60# Show debug output for 'cabal_chdeps' function if set. 64# Show debug output for 'cabal_chdeps' function if set.
61# Needs working 'diff'. 65# Needs working 'diff'.
62: ${CABAL_DEBUG_LOOSENING:=} 66: ${CABAL_DEBUG_LOOSENING:=}
63 67
64HASKELL_CABAL_EXPF="pkg_setup src_compile src_test src_install" 68HASKELL_CABAL_EXPF="pkg_setup src_compile src_test src_install pkg_postinst pkg_postrm"
65 69
66# 'dev-haskell/cabal' passes those options with ./configure-based 70# 'dev-haskell/cabal' passes those options with ./configure-based
67# configuration, but most packages don't need/don't accept it: 71# configuration, but most packages don't need/don't accept it:
68# #515362, #515362 72# #515362, #515362
69QA_CONFIGURE_OPTIONS+=" --with-compiler --with-hc --with-hc-pkg --with-gcc" 73QA_CONFIGURE_OPTIONS+=" --with-compiler --with-hc --with-hc-pkg --with-gcc"
87 profile) CABAL_USE_PROFILE=yes;; 91 profile) CABAL_USE_PROFILE=yes;;
88 bootstrap) CABAL_BOOTSTRAP=yes;; 92 bootstrap) CABAL_BOOTSTRAP=yes;;
89 bin) CABAL_HAS_BINARIES=yes;; 93 bin) CABAL_HAS_BINARIES=yes;;
90 lib) CABAL_HAS_LIBRARIES=yes;; 94 lib) CABAL_HAS_LIBRARIES=yes;;
91 nocabaldep) CABAL_FROM_GHC=yes;; 95 nocabaldep) CABAL_FROM_GHC=yes;;
96 ghcdeps) CABAL_GHC_CONSTRAINT=yes;;
92 test-suite) CABAL_TEST_SUITE=yes;; 97 test-suite) CABAL_TEST_SUITE=yes;;
93 *) CABAL_UNKNOWN="${CABAL_UNKNOWN} ${feature}";; 98 *) CABAL_UNKNOWN="${CABAL_UNKNOWN} ${feature}";;
94 esac 99 esac
95done 100done
96 101
104if [[ -n "${CABAL_USE_HSCOLOUR}" ]]; then 109if [[ -n "${CABAL_USE_HSCOLOUR}" ]]; then
105 IUSE="${IUSE} hscolour" 110 IUSE="${IUSE} hscolour"
106 DEPEND="${DEPEND} hscolour? ( dev-haskell/hscolour )" 111 DEPEND="${DEPEND} hscolour? ( dev-haskell/hscolour )"
107fi 112fi
108 113
114if [[ -n "${CABAL_USE_HOOGLE}" ]]; then
115 # enabled only in ::haskell
116 CABAL_USE_HOOGLE=
117fi
118
109if [[ -n "${CABAL_USE_ALEX}" ]]; then 119if [[ -n "${CABAL_USE_ALEX}" ]]; then
110 DEPEND="${DEPEND} dev-haskell/alex" 120 DEPEND="${DEPEND} dev-haskell/alex"
111fi 121fi
112 122
113if [[ -n "${CABAL_USE_HAPPY}" ]]; then 123if [[ -n "${CABAL_USE_HAPPY}" ]]; then
137fi 147fi
138if [[ -z "${CABAL_BOOTSTRAP}" && -z "${CABAL_FROM_GHC}" ]]; then 148if [[ -z "${CABAL_BOOTSTRAP}" && -z "${CABAL_FROM_GHC}" ]]; then
139 DEPEND="${DEPEND} >=dev-haskell/cabal-${CABAL_MIN_VERSION}" 149 DEPEND="${DEPEND} >=dev-haskell/cabal-${CABAL_MIN_VERSION}"
140fi 150fi
141 151
142# returns the version of cabal currently in use 152# returns the version of cabal currently in use.
153# Rarely it's handy to pin cabal version from outside.
143_CABAL_VERSION_CACHE="" 154: ${_CABAL_VERSION_CACHE:=""}
144cabal-version() { 155cabal-version() {
145 if [[ -z "${_CABAL_VERSION_CACHE}" ]]; then 156 if [[ -z "${_CABAL_VERSION_CACHE}" ]]; then
146 if [[ "${CABAL_BOOTSTRAP}" ]]; then 157 if [[ "${CABAL_BOOTSTRAP}" ]]; then
147 # We're bootstrapping cabal, so the cabal version is the version 158 # We're bootstrapping cabal, so the cabal version is the version
148 # of this package itself. 159 # of this package itself.
149 _CABAL_VERSION_CACHE="${PV}" 160 _CABAL_VERSION_CACHE="${PV}"
150 elif [[ "${CABAL_FROM_GHC}" ]]; then 161 elif [[ "${CABAL_FROM_GHC}" ]]; then
151 local cabal_package=$(echo "$(ghc-libdir)"/Cabal-*) 162 _CABAL_VERSION_CACHE="$(ghc-cabal-version)"
152 # /path/to/ghc/Cabal-${VER} -> ${VER}
153 _CABAL_VERSION_CACHE="${cabal_package/*Cabal-/}"
154 else 163 else
155 # We ask portage, not ghc, so that we only pick up 164 # We ask portage, not ghc, so that we only pick up
156 # portage-installed cabal versions. 165 # portage-installed cabal versions.
157 _CABAL_VERSION_CACHE="$(ghc-extractportageversion dev-haskell/cabal)" 166 _CABAL_VERSION_CACHE="$(ghc-extractportageversion dev-haskell/cabal)"
158 fi 167 fi
161} 170}
162 171
163cabal-bootstrap() { 172cabal-bootstrap() {
164 local setupmodule 173 local setupmodule
165 local cabalpackage 174 local cabalpackage
175 local setup_bootstrap_args=()
176
166 if [[ -f "${S}/Setup.lhs" ]]; then 177 if [[ -f "${S}/Setup.lhs" ]]; then
167 setupmodule="${S}/Setup.lhs" 178 setupmodule="${S}/Setup.lhs"
168 elif [[ -f "${S}/Setup.hs" ]]; then 179 elif [[ -f "${S}/Setup.hs" ]]; then
169 setupmodule="${S}/Setup.hs" 180 setupmodule="${S}/Setup.hs"
170 else 181 else
181 # We build the setup program using the latest version of 192 # We build the setup program using the latest version of
182 # cabal that we have installed 193 # cabal that we have installed
183 cabalpackage=Cabal-$(cabal-version) 194 cabalpackage=Cabal-$(cabal-version)
184 einfo "Using cabal-$(cabal-version)." 195 einfo "Using cabal-$(cabal-version)."
185 196
197 if $(ghc-supports-threaded-runtime); then
198 # Cabal has a bug that deadlocks non-threaded RTS:
199 # https://bugs.gentoo.org/537500
200 # https://github.com/haskell/cabal/issues/2398
201 setup_bootstrap_args+=(-threaded)
202 fi
203
186 make_setup() { 204 make_setup() {
187 set -- -package "${cabalpackage}" --make "${setupmodule}" \ 205 set -- -package "${cabalpackage}" --make "${setupmodule}" \
206 "${setup_bootstrap_args[@]}" \
188 ${HCFLAGS} \ 207 ${HCFLAGS} \
189 ${GHC_BOOTSTRAP_FLAGS} \ 208 ${GHC_BOOTSTRAP_FLAGS} \
190 "$@" \ 209 "$@" \
191 -o setup 210 -o setup
192 echo $(ghc-getghc) "$@" 211 echo $(ghc-getghc) "$@"
235 set -- haddock "$@" 254 set -- haddock "$@"
236 echo ./setup "$@" 255 echo ./setup "$@"
237 ./setup "$@" || die "setup haddock failed" 256 ./setup "$@" || die "setup haddock failed"
238} 257}
239 258
259cabal-hoogle() {
260 ewarn "hoogle USE flag requires doc USE flag, building without hoogle"
261}
262
240cabal-hscolour-haddock() { 263cabal-hscolour-haddock() {
241 # --hyperlink-source implies calling 'setup hscolour' 264 # --hyperlink-source implies calling 'setup hscolour'
242 set -- haddock --hyperlink-source 265 set -- haddock --hyperlink-source
243 echo ./setup "$@" 266 echo ./setup "$@"
244 ./setup "$@" --hyperlink-source || die "setup haddock --hyperlink-source failed" 267 ./setup "$@" --hyperlink-source || die "setup haddock --hyperlink-source failed"
268}
269
270cabal-hoogle-haddock() {
271 set -- haddock --hoogle
272 echo ./setup "$@"
273 ./setup "$@" || die "setup haddock --hoogle failed"
274}
275
276cabal-hoogle-hscolour-haddock() {
277 cabal-hscolour-haddock
278 cabal-hoogle-haddock
279}
280
281cabal-hoogle-hscolour() {
282 ewarn "hoogle USE flag requires doc USE flag, building without hoogle"
283 cabal-hscolour
245} 284}
246 285
247cabal-die-if-nonempty() { 286cabal-die-if-nonempty() {
248 local breakage_type=$1 287 local breakage_type=$1
249 shift 288 shift
280cabal-configure() { 319cabal-configure() {
281 local cabalconf=() 320 local cabalconf=()
282 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= 321 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
283 322
284 if [[ -n "${CABAL_USE_HADDOCK}" ]] && use doc; then 323 if [[ -n "${CABAL_USE_HADDOCK}" ]] && use doc; then
324 # We use the bundled with GHC version if exists
325 # Haddock is very picky about index files
326 # it generates for ghc's base and other packages.
327 local p=${EPREFIX}/usr/bin/haddock-ghc-$(ghc-version)
328 if [[ -f $p ]]; then
329 cabalconf+=(--with-haddock="${p}")
330 else
285 cabalconf+=(--with-haddock=${EPREFIX}/usr/bin/haddock) 331 cabalconf+=(--with-haddock=${EPREFIX}/usr/bin/haddock)
332 fi
286 fi 333 fi
287 if [[ -n "${CABAL_USE_PROFILE}" ]] && use profile; then 334 if [[ -n "${CABAL_USE_PROFILE}" ]] && use profile; then
288 cabalconf+=(--enable-library-profiling) 335 cabalconf+=(--enable-library-profiling)
289 fi 336 fi
290 if [[ -n "${CABAL_USE_ALEX}" ]]; then 337 if [[ -n "${CABAL_USE_ALEX}" ]]; then
301 if [[ -n "${CABAL_USE_CPPHS}" ]]; then 348 if [[ -n "${CABAL_USE_CPPHS}" ]]; then
302 cabalconf+=(--with-cpphs=${EPREFIX}/usr/bin/cpphs) 349 cabalconf+=(--with-cpphs=${EPREFIX}/usr/bin/cpphs)
303 fi 350 fi
304 if [[ -n "${CABAL_TEST_SUITE}" ]]; then 351 if [[ -n "${CABAL_TEST_SUITE}" ]]; then
305 cabalconf+=($(use_enable test tests)) 352 cabalconf+=($(use_enable test tests))
353 fi
354
355 if [[ -n "${CABAL_GHC_CONSTRAINT}" ]]; then
356 cabalconf+=($(cabal-constraint "ghc"))
306 fi 357 fi
307 358
308 local option 359 local option
309 for option in ${HCFLAGS} 360 for option in ${HCFLAGS}
310 do 361 do
329 fi 380 fi
330 381
331 # currently cabal does not respect CFLAGS and LDFLAGS on it's own (bug #333217) 382 # currently cabal does not respect CFLAGS and LDFLAGS on it's own (bug #333217)
332 # so translate LDFLAGS to ghc parameters (without filtering) 383 # so translate LDFLAGS to ghc parameters (without filtering)
333 local flag 384 local flag
385 for flag in $CFLAGS; do cabalconf+=(--ghc-option="-optc$flag"); done
334 for flag in $LDFLAGS; do cabalconf+=(--ghc-option="-optl$flag"); done 386 for flag in $LDFLAGS; do cabalconf+=(--ghc-option="-optl$flag"); done
335 387
336 # disable executable stripping for the executables, as portage will 388 # disable executable stripping for the executables, as portage will
337 # strip by itself, and pre-stripping gives a QA warning. 389 # strip by itself, and pre-stripping gives a QA warning.
338 # cabal versions previous to 1.4 does not strip executables, and does 390 # cabal versions previous to 1.4 does not strip executables, and does
339 # not accept the flag. 391 # not accept the flag.
351 [[ ${CATEGORY}/${PN} == "dev-haskell/cabal" ]] && \ 403 [[ ${CATEGORY}/${PN} == "dev-haskell/cabal" ]] && \
352 $(ghc-supports-shared-libraries) && \ 404 $(ghc-supports-shared-libraries) && \
353 cabalconf+=(--enable-shared) 405 cabalconf+=(--enable-shared)
354 406
355 if $(ghc-supports-shared-libraries); then 407 if $(ghc-supports-shared-libraries); then
356 # maybe a bit lower 408 # Experimental support for dynamically linked binaries.
357 if $(ghc-supports-dynamic-by-default); then 409 # We are enabling it since 7.10.1_rc3
410 if version_is_at_least "7.10.0.20150316" "$(ghc-version)"; then
411 # we didn't enable it before as it was not stable on all arches
358 cabalconf+=(--enable-shared) 412 cabalconf+=(--enable-shared)
413 # Known to break on ghc-7.8/Cabal-1.18
414 # https://ghc.haskell.org/trac/ghc/ticket/9625
415 cabalconf+=(--enable-executable-dynamic)
359 fi 416 fi
360 fi 417 fi
361 418
362 # --sysconfdir appeared in Cabal-1.18+ 419 # --sysconfdir appeared in Cabal-1.18+
363 if ./setup configure --help | grep -q -- --sysconfdir; then 420 if ./setup configure --help | grep -q -- --sysconfdir; then
411 # register that ourselves (if it exists). 468 # register that ourselves (if it exists).
412 469
413 if [[ -n ${CABAL_HAS_LIBRARIES} ]]; then 470 if [[ -n ${CABAL_HAS_LIBRARIES} ]]; then
414 # Newer cabal can generate a package conf for us: 471 # Newer cabal can generate a package conf for us:
415 ./setup register --gen-pkg-config="${T}/${P}.conf" 472 ./setup register --gen-pkg-config="${T}/${P}.conf"
416 ghc-setup-pkg "${T}/${P}.conf" 473 ghc-install-pkg "${T}/${P}.conf"
417 ghc-install-pkg
418 fi 474 fi
419} 475}
420 476
421# Some cabal libs are bundled along with some versions of ghc 477# Some cabal libs are bundled along with some versions of ghc
422# eg filepath-1.0 comes with ghc-6.6.1 478# eg filepath-1.0 comes with ghc-6.6.1
424# when building with this version of ghc, the ebuild is a dummy that is it will 480# when building with this version of ghc, the ebuild is a dummy that is it will
425# install no files since the package is already included with ghc. 481# install no files since the package is already included with ghc.
426# However portage still records the dependency and we can upgrade the package 482# However portage still records the dependency and we can upgrade the package
427# to a later one that's not included with ghc. 483# to a later one that's not included with ghc.
428# You can also put a space separated list, eg CABAL_CORE_LIB_GHC_PV="6.6 6.6.1". 484# You can also put a space separated list, eg CABAL_CORE_LIB_GHC_PV="6.6 6.6.1".
485# Those versions are taken as-is from ghc `--numeric-version`.
486# Package manager versions are also supported:
487# CABAL_CORE_LIB_GHC_PV="7.10.* PM:7.8.4-r1".
429cabal-is-dummy-lib() { 488cabal-is-dummy-lib() {
489 local bin_ghc_version=$(ghc-version)
490 local pm_ghc_version=$(ghc-pm-version)
491
430 for version in ${CABAL_CORE_LIB_GHC_PV[*]}; do 492 for version in ${CABAL_CORE_LIB_GHC_PV}; do
431 [[ "$(ghc-version)" == ${version} ]] && return 0 493 [[ "${bin_ghc_version}" == ${version} ]] && return 0
494 [[ "${pm_ghc_version}" == ${version} ]] && return 0
432 done 495 done
496
433 return 1 497 return 1
434} 498}
435 499
436# exported function: check if cabal is correctly installed for 500# exported function: check if cabal is correctly installed for
437# the currently active ghc (we cannot guarantee this with portage) 501# the currently active ghc (we cannot guarantee this with portage)
485 has src_configure ${HASKELL_CABAL_EXPF} || haskell-cabal_src_configure "$@" 549 has src_configure ${HASKELL_CABAL_EXPF} || haskell-cabal_src_configure "$@"
486 cabal-build 550 cabal-build
487 551
488 if [[ -n "${CABAL_USE_HADDOCK}" ]] && use doc; then 552 if [[ -n "${CABAL_USE_HADDOCK}" ]] && use doc; then
489 if [[ -n "${CABAL_USE_HSCOLOUR}" ]] && use hscolour; then 553 if [[ -n "${CABAL_USE_HSCOLOUR}" ]] && use hscolour; then
554 if [[ -n "${CABAL_USE_HOOGLE}" ]] && use hoogle; then
490 # hscolour and haddock 555 # hoogle, hscolour and haddock
556 cabal-hoogle-hscolour-haddock
557 else
558 # haddock and hscolour
491 cabal-hscolour-haddock 559 cabal-hscolour-haddock
560 fi
492 else 561 else
562 if [[ -n "${CABAL_USE_HOOGLE}" ]] && use hoogle; then
563 # hoogle and haddock
564 cabal-hoogle-haddock
565 else
493 # just haddock 566 # just haddock
494 cabal-haddock 567 cabal-haddock
568 fi
495 fi 569 fi
496 else 570 else
497 if [[ -n "${CABAL_USE_HSCOLOUR}" ]] && use hscolour; then 571 if [[ -n "${CABAL_USE_HSCOLOUR}" ]] && use hscolour; then
572 if [[ -n "${CABAL_USE_HOOGLE}" ]] && use hoogle; then
573 # hoogle and hscolour
574 cabal-hoogle-hscolour
575 else
498 # just hscolour 576 # just hscolour
499 cabal-hscolour 577 cabal-hscolour
578 fi
579 else
580 if [[ -n "${CABAL_USE_HOOGLE}" ]] && use hoogle; then
581 # just hoogle
582 cabal-hoogle
583 fi
500 fi 584 fi
501 fi 585 fi
502} 586}
503 587
504haskell-cabal_src_compile() { 588haskell-cabal_src_compile() {
536 # create a dummy local package conf file for haskell-updater 620 # create a dummy local package conf file for haskell-updater
537 # if it does not exist (dummy libraries and binaries w/o libraries) 621 # if it does not exist (dummy libraries and binaries w/o libraries)
538 local ghc_confdir_with_prefix="$(ghc-confdir)" 622 local ghc_confdir_with_prefix="$(ghc-confdir)"
539 # remove EPREFIX 623 # remove EPREFIX
540 dodir ${ghc_confdir_with_prefix#${EPREFIX}} 624 dodir ${ghc_confdir_with_prefix#${EPREFIX}}
541 local conf_file="${D}/$(ghc-confdir)/$(ghc-localpkgconf)" 625 local hint_db="${D}/$(ghc-confdir)"
542 [[ -e $conf_file ]] || echo '[]' > "$conf_file" || die 626 local hint_file="${hint_db}/${PF}.conf"
543 627 mkdir -p "${hint_db}" || die
544 # make sure installed packages do not destroy ghc's 628 touch "${hint_file}" || die
545 # bundled packages
546 local initial_pkg_db=${ROOT}/$(ghc-libdir)/package.conf.d.initial
547 if [[ -e ${initial_pkg_db} ]]; then
548 local checked_pkg
549 for checked_pkg in $(ghc-listpkg "${conf_file}")
550 do
551 local initial_pkg
552 for initial_pkg in $(ghc-listpkg "${initial_pkg_db}"); do
553 if [[ ${checked_pkg} = ${initial_pkg} ]]; then
554 eerror "Package ${checked_pkg} is shipped with $(ghc-version)."
555 eerror "Ebuild author forgot CABAL_CORE_LIB_GHC_PV entry."
556 eerror "Found in ${initial_pkg_db}."
557 die
558 fi
559 done
560 done
561 fi
562} 629}
563 630
564haskell-cabal_src_install() { 631haskell-cabal_src_install() {
565 pushd "${S}" > /dev/null 632 pushd "${S}" > /dev/null
566 633
567 cabal_src_install 634 cabal_src_install
568 635
569 popd > /dev/null 636 popd > /dev/null
637}
638
639haskell-cabal_pkg_postinst() {
640 ghc-package_pkg_postinst
641}
642
643haskell-cabal_pkg_postrm() {
644 ghc-package_pkg_postrm
570} 645}
571 646
572# @FUNCTION: cabal_flag 647# @FUNCTION: cabal_flag
573# @DESCRIPTION: 648# @DESCRIPTION:
574# ebuild.sh:use_enable() taken as base 649# ebuild.sh:use_enable() taken as base
664 739
665 echo "${new_c}" > "$cf" || 740 echo "${new_c}" > "$cf" ||
666 die "failed to update" 741 die "failed to update"
667} 742}
668 743
744# @FUNCTION: cabal-constraint
745# @DESCRIPTION:
746# Allowes to set contraint to the libraries that are
747# used by specified package
748cabal-constraint() {
749 while read p v ; do
750 echo "--constraint \"$p == $v\""
751 done < $(ghc-pkgdeps ${1})
752}
753
669# @FUNCTION: replace-hcflags 754# @FUNCTION: replace-hcflags
670# @USAGE: <old> <new> 755# @USAGE: <old> <new>
671# @DESCRIPTION: 756# @DESCRIPTION:
672# Replace the <old> flag with <new> in HCFLAGS. Accepts shell globs for <old>. 757# Replace the <old> flag with <new> in HCFLAGS. Accepts shell globs for <old>.
673# The implementation is picked from flag-o-matic.eclass:replace-flags() 758# The implementation is picked from flag-o-matic.eclass:replace-flags()

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.20