svn commit: r320734 - in head/math/algotutor: . files

Kevin Lo kevlo at FreeBSD.org
Thu Jun 13 06:11:35 UTC 2013


Author: kevlo
Date: Thu Jun 13 06:11:34 2013
New Revision: 320734
URL: http://svnweb.freebsd.org/changeset/ports/320734

Log:
  Don't hard code the perl version. While here, fix MASTER_SITES.
  
  PR:	ports/179489
  Submitted by:	Javad Kouhi <javad dot kouhi at gmail.com>

Modified:
  head/math/algotutor/Makefile
  head/math/algotutor/files/patch-algotutor
  head/math/algotutor/pkg-descr

Modified: head/math/algotutor/Makefile
==============================================================================
--- head/math/algotutor/Makefile	Thu Jun 13 05:54:33 2013	(r320733)
+++ head/math/algotutor/Makefile	Thu Jun 13 06:11:34 2013	(r320734)
@@ -1,19 +1,14 @@
-# New ports collection makefile for:	algotutor
-# Date created:		19 January 2005
-# Whom:			Kevin Lo <kevlo at FreeBSD.org>
-#
 # $FreeBSD$
-#
 
 PORTNAME=	algotutor
 PORTVERSION=	0.8.6
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	math
-MASTER_SITES=	http://saturn.stu.edu.tw/~ckhung/dl/
+MASTER_SITES=	http://www.cyut.edu.tw/~ckhung/dl/
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	kevlo at FreeBSD.org
-COMMENT=	An interactive tutorial for algorithms and data structures
+COMMENT=	Interactive tutorial for algorithms and data structures
 
 BUILD_DEPENDS=	p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk
 RUN_DEPENDS:=	${BUILD_DEPENDS}
@@ -31,6 +26,8 @@ LIBFILES=	BST.pm Board.pm Collection.pm 
 post-patch:
 	${REINPLACE_CMD}  -e 's,#!/usr/bin/perl,#!${PERL},' ${WRKSRC}/algotutor
 	${PERL} -pi -e "s'!!PREFIX!!'${PREFIX}'g" ${WRKSRC}/algotutor
+	${REINPLACE_CMD} -e 's,!!PERL_VERSION!!,${PERL_VERSION},' \
+		${WRKSRC}/algotutor
 
 do-install:
 	${MKDIR} ${SITE_PERL}/algotutor

Modified: head/math/algotutor/files/patch-algotutor
==============================================================================
--- head/math/algotutor/files/patch-algotutor	Thu Jun 13 05:54:33 2013	(r320733)
+++ head/math/algotutor/files/patch-algotutor	Thu Jun 13 06:11:34 2013	(r320734)
@@ -5,7 +5,7 @@
  use strict;
  use Getopt::Std;
 -use lib '/usr/share/perl5/algotutor';
-+use lib '!!PREFIX!!/lib/perl5/site_perl/5.8.8/algotutor';
++use lib '!!PREFIX!!/lib/perl5/site_perl/!!PERL_VERSION!!/algotutor';
  
  BEGIN {
      my ($path) = $0 =~ m#(.*/)#;

Modified: head/math/algotutor/pkg-descr
==============================================================================
--- head/math/algotutor/pkg-descr	Thu Jun 13 05:54:33 2013	(r320733)
+++ head/math/algotutor/pkg-descr	Thu Jun 13 06:11:34 2013	(r320734)
@@ -2,4 +2,4 @@ Algotutor is an interactive program for 
 steps of algorithms. The target audience is computer science students 
 and/or anyone who studies algorithms and/or data structures. 
 
-WWW:	http://www.cyut.edu.tw/~ckhung/p/algotutor/
+WWW: http://www.cyut.edu.tw/~ckhung/p/algotutor/


More information about the svn-ports-all mailing list