Ticket #5523: portpkg.2.patch
File portpkg.2.patch, 1.8 KB (added by drernie@…, 19 years ago) |
---|
-
portpkg.
old new 43 43 } 44 44 45 45 # define options 46 options package.type package.destpath 46 options package.type package.destpath package.resources 47 47 48 48 # Set defaults 49 49 default package.destpath {${workpath}} … … 51 51 set_ui_prefix 52 52 53 53 proc pkg_main {args} { 54 global portname portversion portrevision package.type package.destpath UI_PREFIX54 global portname portversion portrevision package.type package.destpath package.resources UI_PREFIX 55 55 56 56 ui_msg "$UI_PREFIX [format [msgcat::mc "Creating pkg for %s-%s"] ${portname} ${portversion}]" 57 57 … … 60 60 61 61 proc package_pkg {portname portversion portrevision} { 62 62 global UI_PREFIX portdbpath destpath workpath prefix portresourcepath\ 63 description package.destpath long_description homepage portpath filespath63 description package.destpath package.resources long_description homepage portpath filespath 64 64 65 65 set resourcepath ${workpath}/pkg_resources 66 66 # XXX: we need to support .lproj in resources. … … 85 85 } 86 86 write_welcome_html ${pkgpath}/Contents/Resources/Welcome.html $portname $portversion $pkg_long_description $pkg_description $pkg_homepage 87 87 file copy -force -- ${portresourcepath}/package/background.tiff ${pkgpath}/Contents/Resources/background.tiff 88 89 if {[info exists package.resources]} { 90 foreach file ${package.resources} { 91 if {![file exists ${file}]} { 92 ui_msg "$UI_PREFIX ${file} from package.resources not found." 93 } else { 94 file copy -force -- ${file} ${pkgpath}/Contents/Resources/ 95 } 96 } 97 } 98 88 99 system "mkbom ${destpath} ${pkgpath}/Contents/Archive.bom" 89 100 system "cd ${destpath} && pax -x cpio -w -z . > ${pkgpath}/Contents/Archive.pax.gz" 90 101