diff options
author | edwin <edwin@FreeBSD.org> | 2002-12-16 21:28:24 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2002-12-16 21:28:24 +0800 |
commit | fa358ca7cc96d4c1aafe0f508ee694815c14f897 (patch) | |
tree | 5930964db9fcf4214525399e9c0383b52c62d4ac /japanese/cal.rb/Makefile | |
parent | f0902550f4d3d18db50bb5f67de1b1d42385b24e (diff) | |
download | freebsd-ports-gnome-fa358ca7cc96d4c1aafe0f508ee694815c14f897.tar.gz freebsd-ports-gnome-fa358ca7cc96d4c1aafe0f508ee694815c14f897.tar.zst freebsd-ports-gnome-fa358ca7cc96d4c1aafe0f508ee694815c14f897.zip |
Make port fetchable and buildable again.
Implicit permission by the fact that the original distfiles weren't
available anymore.
PR: ports/45870
Submitted by: Kimura Fuyuki <fuyuki@hadaly.org>
Diffstat (limited to 'japanese/cal.rb/Makefile')
-rw-r--r-- | japanese/cal.rb/Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/japanese/cal.rb/Makefile b/japanese/cal.rb/Makefile index 5de5a8f59057..32e6c87ddae3 100644 --- a/japanese/cal.rb/Makefile +++ b/japanese/cal.rb/Makefile @@ -6,11 +6,11 @@ # PORTNAME= cal.rb -PORTVERSION= 0.2 +PORTVERSION= 0.21 CATEGORIES= japanese deskutils MASTER_SITES= http://aglaia.c.u-tokyo.ac.jp/~yamamoto/Script/Calendar/ DISTFILES= cal.rb Calendar.rb era_name -DIST_SUBDIR= ${PORTNAME} +DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} MAINTAINER= fuyuki@hadaly.org @@ -18,8 +18,6 @@ USE_RUBY= yes RUBY_SHEBANG_FILES= ${WRKSRC}/cal.rb NO_BUILD= yes -LIBDIR= ${PREFIX}/libdata/cal - do-extract: ${MKDIR} ${WRKSRC} .for i in ${DISTFILES} @@ -27,13 +25,15 @@ do-extract: .endfor post-patch: - ${RUBY} -i -pe 'sub "chdir(.*)", %q{chdir("${LIBDIR}")}' ${WRKSRC}/cal.rb + ${RUBY} -i -pe 'sub "./era_name", "${DATADIR}/era_name"' \ + ${WRKSRC}/Calendar.rb + ${RUBY} -i -pe '/Dir::chdir/ and print "#"' \ + ${WRKSRC}/cal.rb do-install: ${INSTALL_SCRIPT} ${WRKSRC}/cal.rb ${PREFIX}/bin - ${MKDIR} ${LIBDIR} -.for i in Calendar.rb era_name - ${INSTALL_DATA} ${WRKSRC}/${i} ${LIBDIR} -.endfor + ${INSTALL_DATA} ${WRKSRC}/Calendar.rb ${RUBY_SITELIBDIR} + ${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/era_name ${DATADIR} .include <bsd.port.mk> |