aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/portupgrade-devel
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-04-11 00:56:42 +0800
committerknu <knu@FreeBSD.org>2001-04-11 00:56:42 +0800
commitfd23e53a59df9a5023e9b70eb3fcbd01d3668158 (patch)
treecbc2d8e5828417a2d14849ccf25bbad60eae1eba /ports-mgmt/portupgrade-devel
parent69736ca579b9c7d88b7e8d1be2adbd5345f770aa (diff)
downloadfreebsd-ports-gnome-fd23e53a59df9a5023e9b70eb3fcbd01d3668158.tar.gz
freebsd-ports-gnome-fd23e53a59df9a5023e9b70eb3fcbd01d3668158.tar.zst
freebsd-ports-gnome-fd23e53a59df9a5023e9b70eb3fcbd01d3668158.zip
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.
Diffstat (limited to 'ports-mgmt/portupgrade-devel')
-rw-r--r--ports-mgmt/portupgrade-devel/Makefile7
-rw-r--r--ports-mgmt/portupgrade-devel/pkg-plist2
2 files changed, 7 insertions, 2 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