From owner-svn-ports-all@FreeBSD.ORG Thu Jun 13 06:11:35 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5DD346A3; Thu, 13 Jun 2013 06:11:35 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 365821A28; Thu, 13 Jun 2013 06:11:35 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5D6BZSr024347; Thu, 13 Jun 2013 06:11:35 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5D6BYY5024344; Thu, 13 Jun 2013 06:11:34 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201306130611.r5D6BYY5024344@svn.freebsd.org> From: Kevin Lo Date: Thu, 13 Jun 2013 06:11:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r320734 - in head/math/algotutor: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jun 2013 06:11:35 -0000 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 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 -# # $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@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/