diff options
author | mat <mat@FreeBSD.org> | 2015-05-14 18:15:04 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-05-14 18:15:04 +0800 |
commit | d72353c225a0cff8478c442d745a54e4630671fc (patch) | |
tree | 627649ff7699a289d5d78c11bf8d105881402ca8 /Mk | |
parent | 7790dd541328e5000ba710fc478bc5f22ab41cc6 (diff) | |
download | freebsd-ports-gnome-d72353c225a0cff8478c442d745a54e4630671fc.tar.gz freebsd-ports-gnome-d72353c225a0cff8478c442d745a54e4630671fc.tar.zst freebsd-ports-gnome-d72353c225a0cff8478c442d745a54e4630671fc.zip |
MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.sites.mk | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk index 8d13d9027a5c..0940b9d56295 100644 --- a/Mk/bsd.sites.mk +++ b/Mk/bsd.sites.mk @@ -1345,13 +1345,16 @@ MASTER_SITES_SUBDIRS= APACHE_COMMONS_BINARIES:${PORTNAME:S,commons-,,} \ CHEESESHOP:source/${DISTNAME:C/(.).*/\1/}/${DISTNAME:C/(.*)-[0-9].*/\1/} \ DEBIAN:pool/main/${PORTNAME:C/^((lib)?.).*$/\1/}/${PORTNAME} \ FARSIGHT:${PORTNAME} \ + FESTIVAL:${PORTVERSION} \ GCC:releases/${DISTNAME} \ + GENTOO:distfiles \ + GIMP:${PORTNAME}/${PORTVERSION:R}/ \ GITHUB:${GH_ACCOUNT}/${GH_PROJECT}/tar.gz/${GH_TAGNAME}?dummy=/ \ GITHUB_CLOUD:${GH_ACCOUNT}/${GH_PROJECT}/ \ GITHUB_LEGACY:${GH_ACCOUNT}/${GH_PROJECT}/legacy.tar.gz/${GH_TAGNAME}?dummy=/ \ GNOME:sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} \ - GIMP:${PORTNAME}/${PORTVERSION:R}/ \ GNU:${PORTNAME} \ + GNUPG:${PORTNAME} \ GNU_ALPHA:${PORTNAME} \ HORDE:${PORTNAME} \ LIBREOFFICE_DEV:${PORTNAME} \ @@ -1359,6 +1362,8 @@ MASTER_SITES_SUBDIRS= APACHE_COMMONS_BINARIES:${PORTNAME:S,commons-,,} \ MOZDEV:${PORTNAME:tl} \ NETLIB:${PORTNAME} \ PERL_CPAN:${PORTNAME:C/-.*//} \ + QT:archive/qt/${PORTVERSION:R} \ + SAMBA:${PORTNAME} \ SAVANNAH:${PORTNAME:tl} \ SOURCEFORGE:${PORTNAME:tl}/${PORTNAME:tl}/${PORTVERSION} \ XFCE:xfce/${XFCE_MASTER_SITE_VER}/src @@ -1385,11 +1390,13 @@ _site_group_= ${_site_:S/^${_site_:C@^(.*):[^/:]+$@\1@}//:S/^://} _site_url_= ${_abbrev_:C/.*://} . endif . endfor -. for _subdir_ in ${MASTER_SITES_SUBDIRS} -. if ${_site_url_} == ${_subdir_:C/:.*//} && !defined(MASTER_SITE_SUBDIR) +. if !defined(MASTER_SITE_SUBDIR) +. for _subdir_ in ${MASTER_SITES_SUBDIRS} +. if ${_site_url_} == ${_subdir_:C/:.*//} _site_subdir_?= ${_subdir_:C/.*://} -. endif -. endfor +. endif +. endfor +. endif . ifdef MASTER_SITE_${_site_url_} . ifdef _site_subdir_ MASTER_SITES_EXP+= ${MASTER_SITE_${_site_url_}:S^%SUBDIR%^${_site_subdir_}^:S/$/:${_site_group_}/:S/:$//} @@ -1426,11 +1433,13 @@ _site_group_= ${_site_:S/^${_site_:C@^(.*):[^/:]+$@\1@}//:S/^://} _site_url_= ${_abbrev_:C/.*://} . endif . endfor -. for _subdir_ in ${MASTER_SITES_SUBDIRS} -. if ${_site_url_} == ${_subdir_:C/:.*//} && !defined(MASTER_SITE_SUBDIR) +. if !defined(MASTER_SITE_SUBDIR) +. for _subdir_ in ${MASTER_SITES_SUBDIRS} +. if ${_site_url_} == ${_subdir_:C/:.*//} _site_subdir_?= ${_subdir_:C/.*://} -. endif -. endfor +. endif +. endfor +. endif . ifdef MASTER_SITE_${_site_url_} . ifdef _site_subdir_ PATCH_SITES_EXP+= ${MASTER_SITE_${_site_url_}:S^%SUBDIR%^${_site_subdir_}^:S/$/:${_site_group_}/:S/:$//} |