svn commit: r506644 - head/Mk/Uses

Tobias Kortkamp tobik at FreeBSD.org
Mon Jul 15 08:46:14 UTC 2019


Author: tobik
Date: Mon Jul 15 08:46:13 2019
New Revision: 506644
URL: https://svnweb.freebsd.org/changeset/ports/506644

Log:
  Mk/Uses/cargo.mk: Handle distfile group names properly
  
  Crates like openssl-src-111.3.0+1.1.1c have characters not in
  [a-zA-Z0-9].  Use the complement of [a-zA-Z0-9] instead of adding
  + to the list of chars [-.] we currently handle.

Modified:
  head/Mk/Uses/cargo.mk

Modified: head/Mk/Uses/cargo.mk
==============================================================================
--- head/Mk/Uses/cargo.mk	Mon Jul 15 06:26:25 2019	(r506643)
+++ head/Mk/Uses/cargo.mk	Mon Jul 15 08:46:13 2019	(r506644)
@@ -35,8 +35,8 @@ CARGO_DIST_SUBDIR?=	rust/crates
 
 # Generate list of DISTFILES.
 .for _crate in ${CARGO_CRATES}
-MASTER_SITES+=	CRATESIO/${_crate:C/^(.*)-[0-9].*/\1/}/${_crate:C/^.*-([0-9].*)/\1/}:cargo_${_crate:S/-//g:S/.//g}
-DISTFILES+=	${CARGO_DIST_SUBDIR}/${_crate}.tar.gz:cargo_${_crate:S/-//g:S/.//g}
+MASTER_SITES+=	CRATESIO/${_crate:C/^(.*)-[0-9].*/\1/}/${_crate:C/^.*-([0-9].*)/\1/}:cargo_${_crate:C/[^a-zA-Z0-9_]//g}
+DISTFILES+=	${CARGO_DIST_SUBDIR}/${_crate}.tar.gz:cargo_${_crate:C/[^a-zA-Z0-9_]//g}
 .endfor
 
 # Build dependencies.


More information about the svn-ports-head mailing list