forked from Lainports/freebsd-ports
- Implement new knobs for gems and rake (these are included in ruby 1.9 distribution already). Also move gem bits from ruby-gems/Makefile.common to bsd.ruby.mk[1]. Now to depend on gems or rake you should define USE_RUBYGEMS/USE_RAKE accordingly. Also RAKE_BIN variable is provided for pointing to the right rake executable. - Rewrite RUBY_SCHEBANG in awk to eliminate build dependency on ruby. Discussed with: Jonathan Weiss <jw@innerewut.de> [1] (gems maintainer) Tested by: ports@
26 lines
585 B
Makefile
26 lines
585 B
Makefile
# Ports collection makefile for: rubygem-gd2
|
|
# Date created: 07 June 2007
|
|
# Whom: Alexander Logvinov <ports@logvinov.com>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gd2
|
|
PORTVERSION= 1.1.1
|
|
CATEGORIES= graphics rubygems
|
|
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@logvinov.com
|
|
COMMENT= Ruby binding for Thomas Boutell's gd 2.x graphics library
|
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
USE_RUBY= yes
|
|
USE_RUBYGEMS= yes
|
|
|
|
post-install:
|
|
@${REINPLACE_CMD} 's|so.2|so.4|' ${PREFIX}/${GEM_LIB_DIR}/lib/gd2.rb
|
|
|
|
.include <bsd.port.mk>
|