Skip to content
Permalink
Browse files

Remove 'register' proc.

Now targets have a handle to the target object directly.  Alleviates need for
unique names, and simplifies pre-${target}/post-${target} implementation.
Will allow for future enhancement to options and variants.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@1015 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Kevin Van Vechten
Kevin Van Vechten committed Oct 9, 2002
1 parent 5b6e28b commit b450fa4ab7096bebb00ae3df9149ac70bf7f12fc
@@ -32,10 +32,10 @@
package provide portbuild 1.0
package require portutil 1.0

register com.apple.build target build_main
register com.apple.build provides build
register com.apple.build requires main fetch extract checksum patch configure
register com.apple.build deplist depends_build depends_lib
set com.apple.build [target_new com.apple.build build_main]
${com.apple.build} provides build
${com.apple.build} requires main fetch extract checksum patch configure
${com.apple.build} deplist depends_build depends_lib

# define options
options build.target.all
@@ -32,9 +32,9 @@
package provide portchecksum 1.0
package require portutil 1.0

register com.apple.checksum target checksum_main
register com.apple.checksum provides checksum
register com.apple.checksum requires main fetch
set com.apple.checksum [target_new com.apple.checksum checksum_main]
${com.apple.checksum} provides checksum
${com.apple.checksum} requires main fetch

# define options
options checksums
@@ -34,9 +34,10 @@
package provide portclean 1.0
package require portutil 1.0

register com.apple.clean target clean_main always
register com.apple.clean provides clean
register com.apple.clean requires main
set com.apple.clean [target_new com.apple.clean clean_main]
${com.apple.clean} set runtype always
${com.apple.clean} provides clean
${com.apple.clean} requires main

proc clean_main {args} {
global portpath workdir
@@ -32,10 +32,10 @@
package provide portconfigure 1.0
package require portutil 1.0

register com.apple.configure target configure_main
register com.apple.configure provides configure
register com.apple.configure requires main fetch extract checksum patch
register com.apple.configure deplist depends_build depends_lib
set com.apple.configure [target_new com.apple.configure configure_main]
${com.apple.configure} provides configure
${com.apple.configure} requires main fetch extract checksum patch
${com.apple.configure} deplist depends_build depends_lib

# define options
commands configure automake autoconf xmkmf libtool
@@ -32,11 +32,11 @@
package provide portextract 1.0
package require portutil 1.0

register com.apple.extract target extract_main
register com.apple.extract init extract_init
register com.apple.extract provides extract
register com.apple.extract requires fetch checksum
register com.apple.extract deplist depends_extract
set com.apple.extract [target_new com.apple.extract extract_main]
${com.apple.extract} set init extract_init
${com.apple.extract} provides extract
${com.apple.extract} requires fetch checksum
${com.apple.extract} deplist depends_extract

# define options
options extract.only
@@ -32,11 +32,11 @@
package provide portfetch 1.0
package require portutil 1.0

register com.apple.fetch target fetch_main
register com.apple.fetch init fetch_init
register com.apple.fetch provides fetch
register com.apple.fetch requires main
register com.apple.fetch deplist depends_fetch
set com.apple.fetch [target_new com.apple.fetch fetch_main]
${com.apple.fetch} set init fetch_init
${com.apple.fetch} provides fetch
${com.apple.fetch} requires main
${com.apple.fetch} deplist depends_fetch

# define options: distname master_sites
options master_sites patch_sites extract.sufx distfiles patchfiles use_zip use_bzip2 dist_subdir fetch.type cvs.module cvs.root cvs.password cvs.tag
@@ -32,10 +32,10 @@
package provide portinstall 1.0
package require portutil 1.0

register com.apple.install target install_main
register com.apple.install provides install
register com.apple.install requires main fetch extract checksum patch configure build
register com.apple.install deplist depends_run depends_lib
set com.apple.install [target_new com.apple.install install_main]
${com.apple.install} provides install
${com.apple.install} requires main fetch extract checksum patch configure build
${com.apple.install} deplist depends_run depends_lib

# define options
options build.target.install
@@ -35,8 +35,8 @@
package provide portmain 1.0
package require portutil 1.0

register com.apple.main target main
register com.apple.main provides main
set com.apple.main [target_new com.apple.main main]
${com.apple.main} provides main

# define options
options prefix name version revision categories maintainers workdir worksrcdir filedir distname portdbpath libpath distpath sources_conf os.platform os.version os.arch os.endian platforms
@@ -32,9 +32,10 @@
package provide portpackage 1.0
package require portutil 1.0

register com.apple.package target package_main always
register com.apple.package provides packager
register com.apple.package requires registry
set com.apple.package [target_new com.apple.package package_main]
${com.apple.package} set runtype always
${com.apple.package} provides packager
${com.apple.package} requires registry

# define options
options package.type package.dir
@@ -32,10 +32,10 @@
package provide portpatch 1.0
package require portutil 1.0

register com.apple.patch target patch_main
register com.apple.patch provides patch
register com.apple.patch requires main fetch checksum extract
register com.apple.patch deplist depends_build depends_lib
set com.apple.patch [target_new com.apple.patch patch_main]
${com.apple.patch} provides patch
${com.apple.patch} requires main fetch checksum extract
${com.apple.patch} deplist depends_build depends_lib

set UI_PREFIX "---> "

@@ -32,10 +32,10 @@
package provide portregistry 1.0
package require portutil 1.0

register com.apple.registry target registry_main
register com.apple.registry provides registry
register com.apple.registry requires main fetch extract checksum patch configure build install
register com.apple.registry deplist depends_run depends_lib
set com.apple.registry [target_new com.apple.registry registry_main]
${com.apple.registry} provides registry
${com.apple.registry} requires main fetch extract checksum patch configure build install
${com.apple.registry} deplist depends_run depends_lib

# define options
options contents long_description description registry.nochecksum registry.path registry.nobzip registry.contents_recurse
@@ -32,9 +32,10 @@
package provide portuninstall 1.0
package require portutil 1.0

register com.apple.uninstall target uninstall_main always
register com.apple.uninstall provides uninstall
register com.apple.uninstall requires main
set com.apple.uninstall [target_new com.apple.uninstall uninstall_main]
${com.apple.uninstall} set runtype always
${com.apple.uninstall} provides uninstall
${com.apple.uninstall} requires main

# define options
options uninstall.force uninstall.nochecksum

0 comments on commit b450fa4

Please sign in to comment.
You can’t perform that action at this time.