mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
fc7976bed7
So, mark IGNORE when RUBY_DEFAULT_VER is not 1.9. Spotted by: pointyhat via beat
49 lines
1.0 KiB
Makefile
49 lines
1.0 KiB
Makefile
# New ports collection makefile for: gedy
|
|
# Date created: 21 February 2010
|
|
# Whom: Hajimu UMEMOTO <ume@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gedy
|
|
PORTVERSION= 0.9.0
|
|
#PORTREVISION= 0
|
|
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 Edy Viewer
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/gtk2.so:${PORTSDIR}/x11-toolkits/ruby-gtk2 \
|
|
${RUBY_SITEARCHLIBDIR}/pasori.so:${PORTSDIR}/devel/libpafe-ruby
|
|
|
|
USE_RUBY= yes
|
|
RUBY_VER= 1.9
|
|
|
|
EXTRACT_CMD= ${CP}
|
|
EXTRACT_BEFORE_ARGS= -p
|
|
EXTRACT_AFTER_ARGS= .
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${RUBY_DEFAULT_VER} != ${RUBY_VER}
|
|
IGNORE= requires RUBY_DEFAULT_VER=${RUBY_VER}
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,#! /usr/bin/ruby1.9.3,#!${RUBY},g' \
|
|
${WRKSRC}/${PORTNAME}
|
|
|
|
do-install:
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
.include <bsd.port.post.mk>
|