Index: packaging/packages.sh =================================================================== --- packaging/packages.sh (revision 34846) +++ packaging/packages.sh (revision 34847) @@ -2,6 +2,7 @@ ROOT=../../.. proot=$ROOT/src_plugins +librnd_pkgs="hid-gtk2-gl cloud lib-gui hid-gtk2-gdk lib-gtk hid-lesstif lib-gl" ### generate description.txt (file formats) ### @@ -52,7 +53,7 @@ sed "s@^@$n @" < $n done cat extra.digest -) | awk -v "meta_deps=$meta_deps" ' +) | awk -v "meta_deps=$meta_deps" -v "librnd_pkgs=$librnd_pkgs" ' BEGIN { gsub(" ", " pcb-rnd-", meta_deps) sub("^", "pcb-rnd-", meta_deps) @@ -65,9 +66,36 @@ } LONG[pkg] = LONG[pkg] $0 " " } + + v = split(librnd_pkgs, A, "[ \t]+") + for(n = 1; n <= v; n++) + LIBRND_PKG[A[n]] = 1 + + PLUGIN["pcb-rnd-lib_wget"] = "librnd3-cloud" } + function fix_dep(dep) { + if ((dep == "") || (dep ~ "^librnd")) + return dep + sub("^pcb-rnd-", "", dep) + if (dep in LIBRND_PKG) + return "librnd3-" dep + return "pcb-rnd-" dep + } + + function fix_deps(deps ,A,n,s,v) + { + v = split(deps, A, "[ \t]+") + s = "" + for(n = 1; n <= v; n++) + s = s " " fix_dep(A[n]) + sub("^ ", "", s) + return s; + } + + + { if ($1 ~ "^[!]") { in_librnd = 1 sub("^[!]", "", $1) @@ -173,7 +201,12 @@ } END { - + +# for(plg in PLUGIN_DEP) +# print "PLUGIN[" plg "] = " PLUGIN[plg] > "/dev/stderr" +# exit(1) + + # everything depends on core for(pkg in PKG) add_dep(pkg, "pcb-rnd-core") @@ -199,6 +232,7 @@ PKG["pcb-rnd-doc"] = " " IFILES["pcb-rnd-doc"] = "/usr/share/doc/*" + print "

Package summary and dependencies

" print "" print "
package depends on (packages) consists of (plugins)" @@ -205,9 +239,9 @@ for(pkg in PKG) { if (pkg == "pcb-rnd-core") - print "
" pkg "" PKG_DEP[pkg] "(builtin: " PKG[pkg] ")" + print "
" pkg "" fix_deps(PKG_DEP[pkg]) "(builtin: " PKG[pkg] ")" else - print "
" pkg "" PKG_DEP[pkg] "" PKG[pkg] + print "
" pkg "" fix_deps(PKG_DEP[pkg]) "" PKG[pkg] print strip(PKG_DEP[pkg]) > "auto/" pkg ".deps" print pkg > "auto/List" }