From 971489364b0194ddb3976ad53349359a38502b8a Mon Sep 17 00:00:00 2001 From: kevlo Date: Thu, 13 Jun 2013 06:11:34 +0000 Subject: Don't hard code the perl version. While here, fix MASTER_SITES. PR: ports/179489 Submitted by: Javad Kouhi --- math/algotutor/Makefile | 13 +++++-------- math/algotutor/files/patch-algotutor | 2 +- math/algotutor/pkg-descr | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) (limited to 'math') diff --git a/math/algotutor/Makefile b/math/algotutor/Makefile index 1e12fabf574..7669439a86d 100644 --- a/math/algotutor/Makefile +++ b/math/algotutor/Makefile @@ -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 Configurable.pm DCEdge.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 diff --git a/math/algotutor/files/patch-algotutor b/math/algotutor/files/patch-algotutor index 5b5fa38e962..0d3ba55e668 100644 --- a/math/algotutor/files/patch-algotutor +++ b/math/algotutor/files/patch-algotutor @@ -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#(.*/)#; diff --git a/math/algotutor/pkg-descr b/math/algotutor/pkg-descr index 405304b3079..2c3dcc209d8 100644 --- a/math/algotutor/pkg-descr +++ b/math/algotutor/pkg-descr @@ -2,4 +2,4 @@ Algotutor is an interactive program for observing the intermediate 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/ -- cgit