2013-09-20 20:47:54 +02:00
|
|
|
# Created by: Hajimu UMEMOTO <ume@FreeBSD.org>
|
2012-08-12 22:10:47 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gsuica
|
|
|
|
PORTVERSION= 0.9.1
|
2014-10-15 13:45:45 +02:00
|
|
|
PORTREVISION= 2
|
2012-08-12 22:10:47 +02:00
|
|
|
CATEGORIES= japanese ruby
|
|
|
|
MASTER_SITES= http://homepage3.nifty.com/slokar/pasori/
|
|
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
EXTRACT_SUFX= # empty
|
|
|
|
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ume@FreeBSD.org
|
|
|
|
COMMENT= GNOME SUICA Viewer
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-04-01 16:08:37 +02:00
|
|
|
RUN_DEPENDS= rubygem-gtk2>0:x11-toolkits/rubygem-gtk2 \
|
|
|
|
${RUBY_SITEARCHLIBDIR}/pasori.so:devel/libpafe-ruby
|
2012-08-12 22:10:47 +02:00
|
|
|
|
|
|
|
USE_RUBY= yes
|
2014-10-15 13:45:45 +02:00
|
|
|
USES= shebangfix
|
|
|
|
SHEBANG_FILES= ${PORTNAME}
|
|
|
|
ruby_OLD_CMD= /usr/bin/ruby1.9.3
|
2012-08-12 22:10:47 +02:00
|
|
|
|
|
|
|
EXTRACT_CMD= ${CP}
|
|
|
|
EXTRACT_BEFORE_ARGS= -p
|
|
|
|
EXTRACT_AFTER_ARGS= .
|
|
|
|
NO_WRKSUBDIR= yes
|
2016-01-17 14:30:24 +01:00
|
|
|
NO_ARCH= yes
|
2012-08-12 22:10:47 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
|
|
|
|
post-patch:
|
2014-10-15 13:45:45 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/Gdk::Atom.new(0)/Gdk::Selection::CLIPBOARD/g' \
|
|
|
|
${WRKSRC}/${PORTNAME}
|
2012-08-12 22:10:47 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-10-15 13:45:45 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
2012-08-12 22:10:47 +02:00
|
|
|
|
|
|
|
# Fetch station code database
|
|
|
|
station-code-fetch:
|
|
|
|
@(cd ${WRKDIR}; \
|
|
|
|
${SETENV} ${FETCH_ENV} ${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
|
|
|
|
-o StationCode.xls \
|
|
|
|
http://www.denno.net/SFCardFan/sendexcel.php; \
|
|
|
|
${FETCH_AFTER_ARGS} \
|
|
|
|
${SETENV} ${FETCH_ENV} ${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
|
|
|
|
${MASTER_SITES}station_code_conv.sh ${FETCH_AFTER_ARGS})
|
|
|
|
|
|
|
|
# Install station code database into ~/.gsuica/station_code
|
2016-04-01 16:08:37 +02:00
|
|
|
# BUILD_DEPENDS+= nkf:japanese/nkf
|
|
|
|
# BUILD_DEPENDS+= xlhtml:textproc/xlhtml
|
2012-08-12 22:10:47 +02:00
|
|
|
station-code-install:
|
|
|
|
@(cd ${WRKDIR}; ${SH} station_code_conv.sh StationCode.xls)
|
|
|
|
|
2014-10-15 13:45:45 +02:00
|
|
|
.include <bsd.port.mk>
|