freebsd-ports/japanese/gedy/Makefile
Muhammad Moinur Rahman 18c6e18276 Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk

Notable changes are.

- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
  USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.

This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863

I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.

Approved by:	portmgr
Differential Revision:	https://reviews.freebsd.org/D37925
2023-01-14 17:08:33 -06:00

40 lines
934 B
Makefile

PORTNAME= gedy
PORTVERSION= 0.9.0
PORTREVISION= 3
CATEGORIES= japanese ruby
MASTER_SITES= http://hito.music.coocan.jp/pasori/
DISTNAME= ${PORTNAME}
EXTRACT_SUFX= # empty
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= ume@FreeBSD.org
COMMENT= GNOME Edy Viewer
WWW= http://hito.music.coocan.jp/pasori/gedyviewer.html
LICENSE= GPLv2
RUN_DEPENDS= rubygem-gtk2>0:x11-toolkits/rubygem-gtk2 \
rubygem-gio2>=3.1.0:devel/rubygem-gio2 \
${RUBY_SITEARCHLIBDIR}/pasori.so:devel/libpafe-ruby
USES= ruby shebangfix
SHEBANG_FILES= ${PORTNAME}
ruby_OLD_CMD= /usr/bin/ruby1.9.3
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS= -p
EXTRACT_AFTER_ARGS= .
NO_WRKSUBDIR= yes
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's/Gdk::Atom.new(0)/Gdk::Selection::CLIPBOARD/g' \
${WRKSRC}/${PORTNAME}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>