development and profile are special tags and should always be the last component

of the name if present
This commit is contained in:
Baptiste Daroussin 2015-03-18 11:27:11 +00:00
parent 9269ba461b
commit 6b710cc6fe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/release-pkg/; revision=280215
4 changed files with 42 additions and 4 deletions

View File

@ -0,0 +1,13 @@
name = "FreeBSD-lib32-development"
origin = "base"
version = "%VERSION%"
comment = "32bits libraries"
categories = [ base ]
maintainer = "re@FreeBSD.org"
www = "http://www.FreeBSD.org"
prefix = "/"
licenselogic = "single"
licenses = [ BSD2CLAUSE ]
desc = <<EOD
TODO
EOD

View File

@ -0,0 +1,13 @@
name = "FreeBSD-lib32-profile"
origin = "base"
version = "%VERSION%"
comment = "32bits libraries"
categories = [ base ]
maintainer = "re@FreeBSD.org"
www = "http://www.FreeBSD.org"
prefix = "/"
licenselogic = "single"
licenses = [ BSD2CLAUSE ]
desc = <<EOD
TODO
EOD

View File

@ -1,7 +1,7 @@
name = "FreeBSD-lib32"
origin = "base"
version = "%VERSION%"
comment = "32bits libraries
comment = "32bits libraries"
categories = [ base ]
maintainer = "re@FreeBSD.org"
www = "http://www.FreeBSD.org"

View File

@ -25,7 +25,7 @@
if (length(tags) == 0)
next
if (tags ~ /package=/) {
ext = pkgname = ""
ext = pkgname = pkgend = ""
split(tags, a, ",");
for (i in a) {
if (a[i] ~ /^package=/) {
@ -33,17 +33,29 @@
gsub(/package=/, "", pkgname)
} else if (a[i] == "config") {
type="config"
} else if (a[i] == "development" || a[i] == "profile") {
pkgend=a[i]
} else {
ext=a[i]
if (ext != "")
ext=ext"-"a[i]
else
ext=a[i]
}
}
if (length(ext) > 0) {
if (ext != "") {
if (pkgname == "runtime") {
pkgname=ext
} else {
pkgname=pkgname"-"ext
}
}
if (pkgend != "") {
if (pkgname == "runtime") {
pkgname=pkgend
} else {
pkgname=pkgname"-"pkgend
}
}
} else {
print "No packages specified in line: $0" > 2
next