diff options
author | tobik <tobik@FreeBSD.org> | 2019-02-15 20:04:50 +0800 |
---|---|---|
committer | tobik <tobik@FreeBSD.org> | 2019-02-15 20:04:50 +0800 |
commit | 167f616fa9b978f495342fecad43729c2b6c6661 (patch) | |
tree | 2bf19262dad24296ad6ad7d1d4908ed4c86779b0 /Mk/bsd.sites.mk | |
parent | 90c03088f5cbad8a3c03598541af4a28da6d705f (diff) | |
download | freebsd-ports-gnome-167f616fa9b978f495342fecad43729c2b6c6661.tar.gz freebsd-ports-gnome-167f616fa9b978f495342fecad43729c2b6c6661.tar.zst freebsd-ports-gnome-167f616fa9b978f495342fecad43729c2b6c6661.zip |
Add a CRATESIO entry for crates.io to bsd.sites.mk
Switch cargo.mk over to it.
Differential Revision: https://reviews.freebsd.org/D19133
Diffstat (limited to 'Mk/bsd.sites.mk')
-rw-r--r-- | Mk/bsd.sites.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk index ccd3ce64299d..f03a5207ec25 100644 --- a/Mk/bsd.sites.mk +++ b/Mk/bsd.sites.mk @@ -130,6 +130,10 @@ MASTER_SITE_CRAN+= \ MASTER_SITE_CRAN_ARCHIVE+= ${MASTER_SITE_CRAN:S,$,Archive/${PORTNAME}/,} .endif +.if !defined(IGNORE_MASTER_SITE_CRATESIO) +MASTER_SITE_CRATESIO+= https://crates.io/api/v1/crates/%SUBDIR%/download?dummy=/ +.endif + .if !defined(IGNORE_MASTER_SITE_DEBIAN) MASTER_SITE_DEBIAN+= \ http://cdn.debian.net/debian/%SUBDIR%/ \ @@ -1240,6 +1244,7 @@ MASTER_SITES_SUBDIRS= APACHE_COMMONS_BINARIES:${PORTNAME:S,commons-,,} \ APACHE_JAKARTA:${PORTNAME:S,-,/,}/source \ BERLIOS:${PORTNAME:tl}.berlios \ CHEESESHOP:source/${DISTNAME:C/(.).*/\1/}/${DISTNAME:S/-${DISTVERSIONFULL}$//} \ + CRATESIO:${PORTNAME}/${DISTVERSIONFULL} \ DEBIAN:pool/main/${PORTNAME:C/^((lib)?.).*$/\1/}/${PORTNAME} \ FARSIGHT:${PORTNAME} \ FESTIVAL:${PORTVERSION} \ |