summaryrefslogtreecommitdiff
path: root/ports-mgmt
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-04-10 16:56:42 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-04-10 16:56:42 +0000
commita736e4aa4ecf855be0274bbca3a8bfe19b4d428e (patch)
tree9a8900db8e49c29463063c062d22da4879da081e /ports-mgmt
parentUpdate ruby-optparse to 0.7.10. (diff)
Say good-bye to portversion. Now we have new pkg_version(1) which
does handle versions correctly. By the way, I'll have to find a workaround for the ruby's thread vs. libc_r (stdio/malloc) problem exposed by portversion... Hmm.
Notes
Notes: svn path=/head/; revision=41211
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portupgrade-devel/Makefile7
-rw-r--r--ports-mgmt/portupgrade-devel/pkg-plist2
-rw-r--r--ports-mgmt/portupgrade/Makefile7
-rw-r--r--ports-mgmt/portupgrade/pkg-plist2
4 files changed, 14 insertions, 4 deletions
diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile
index 0780589e4473..4ea98938ad05 100644
--- a/ports-mgmt/portupgrade-devel/Makefile
+++ b/ports-mgmt/portupgrade-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 1.19
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.iDaemons.org/distfiles/
@@ -21,6 +22,12 @@ USE_RUBY= yes
NO_BUILD= yes
+post-extract:
+ ${RM} ${WRKSRC}/misc/zsh/_portversion
+
+post-patch:
+ ${RUBY} -i -pe "sub /, 'portversion'/, ''" ${WRKSRC}/install.rb
+
do-install:
cd ${WRKSRC} && ${RUBY} install.rb
${MKDIR} ${PREFIX}/share/zsh/site-functions
diff --git a/ports-mgmt/portupgrade-devel/pkg-plist b/ports-mgmt/portupgrade-devel/pkg-plist
index 3be08857fb2d..8423e512f464 100644
--- a/ports-mgmt/portupgrade-devel/pkg-plist
+++ b/ports-mgmt/portupgrade-devel/pkg-plist
@@ -1,5 +1,4 @@
sbin/portupgrade
-sbin/portversion
%%RUBY_SITELIBDIR%%/pkg.rb
%%RUBY_SITELIBDIR%%/pkgdb.rb
%%RUBY_SITELIBDIR%%/pkginfo.rb
@@ -8,7 +7,6 @@ sbin/portversion
%%RUBY_SITELIBDIR%%/ports.rb
%%RUBY_SITELIBDIR%%/portsdb.rb
share/zsh/site-functions/_portupgrade
-share/zsh/site-functions/_portversion
@unexec if [ ! -x %D/bin/zsh ]; then rmdir -p %D/share/zsh/site-functions; fi
%%PORTDOCS%%share/doc/portupgrade/README
%%PORTDOCS%%@dirrm share/doc/portupgrade
diff --git a/ports-mgmt/portupgrade/Makefile b/ports-mgmt/portupgrade/Makefile
index 0780589e4473..4ea98938ad05 100644
--- a/ports-mgmt/portupgrade/Makefile
+++ b/ports-mgmt/portupgrade/Makefile
@@ -7,6 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 1.19
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.iDaemons.org/distfiles/
@@ -21,6 +22,12 @@ USE_RUBY= yes
NO_BUILD= yes
+post-extract:
+ ${RM} ${WRKSRC}/misc/zsh/_portversion
+
+post-patch:
+ ${RUBY} -i -pe "sub /, 'portversion'/, ''" ${WRKSRC}/install.rb
+
do-install:
cd ${WRKSRC} && ${RUBY} install.rb
${MKDIR} ${PREFIX}/share/zsh/site-functions
diff --git a/ports-mgmt/portupgrade/pkg-plist b/ports-mgmt/portupgrade/pkg-plist
index 3be08857fb2d..8423e512f464 100644
--- a/ports-mgmt/portupgrade/pkg-plist
+++ b/ports-mgmt/portupgrade/pkg-plist
@@ -1,5 +1,4 @@
sbin/portupgrade
-sbin/portversion
%%RUBY_SITELIBDIR%%/pkg.rb
%%RUBY_SITELIBDIR%%/pkgdb.rb
%%RUBY_SITELIBDIR%%/pkginfo.rb
@@ -8,7 +7,6 @@ sbin/portversion
%%RUBY_SITELIBDIR%%/ports.rb
%%RUBY_SITELIBDIR%%/portsdb.rb
share/zsh/site-functions/_portupgrade
-share/zsh/site-functions/_portversion
@unexec if [ ! -x %D/bin/zsh ]; then rmdir -p %D/share/zsh/site-functions; fi
%%PORTDOCS%%share/doc/portupgrade/README
%%PORTDOCS%%@dirrm share/doc/portupgrade