2005-09-14 15:02:28 +02:00
|
|
|
# Ports collection makefile for: gem-syntax
|
|
|
|
# Date created: 11 Sep 2005
|
|
|
|
# Whom: dirk.meyer@dinoex.sub.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= syntax
|
|
|
|
PORTVERSION= 1.0.0
|
2006-01-21 21:25:07 +01:00
|
|
|
CATEGORIES= textproc rubygems
|
2006-08-08 13:35:27 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2006-05-13 10:27:06 +02:00
|
|
|
PKGNAMEPREFIX= rubygem-
|
2005-09-14 15:02:28 +02:00
|
|
|
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
|
|
COMMENT= A module for using Systax highlighting in Ruby
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
#.include "${PORTSDIR}/devel/ruby-gems/Makefile.common"
|
|
|
|
# syntax.gem has invalid content, we need to buuild the gem ourself
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= ${RUBYGEMBIN}:${PORTSDIR}/devel/ruby-gems
|
|
|
|
RUN_DEPENDS+= ${BUILD_DEPENDS}
|
|
|
|
|
|
|
|
REV= 1.8
|
|
|
|
GEMS_BASE_DIR= lib/ruby/gems/${REV}
|
|
|
|
GEMS_DIR= ${GEMS_BASE_DIR}/gems
|
|
|
|
DOC_DIR= ${GEMS_BASE_DIR}/doc
|
|
|
|
CACHE_DIR= ${GEMS_BASE_DIR}/cache
|
|
|
|
SPEC_DIR= ${GEMS_BASE_DIR}/specifications
|
2008-03-29 13:05:18 +01:00
|
|
|
GEM_NAME?= ${PORTNAME}-${PORTVERSION}
|
|
|
|
GEM_LIB_DIR= ${GEMS_DIR}/${GEM_NAME}
|
|
|
|
GEM_DOC_DIR= ${DOC_DIR}/${GEM_NAME}
|
|
|
|
GEM_SPEC= ${SPEC_DIR}/${GEM_NAME}.gemspec
|
|
|
|
GEM_CACHE= ${CACHE_DIR}/${GEM_NAME}.gem
|
2005-09-14 15:02:28 +02:00
|
|
|
|
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}" \
|
|
|
|
REV="${REV}" \
|
|
|
|
GEMS_BASE_DIR="lib/ruby/gems/${REV}" \
|
|
|
|
GEMS_DIR="${GEMS_BASE_DIR}/gems" \
|
|
|
|
DOC_DIR="${GEMS_BASE_DIR}/doc" \
|
|
|
|
CACHE_DIR="${GEMS_BASE_DIR}/cache" \
|
|
|
|
SPEC_DIR="${GEMS_BASE_DIR}/specifications" \
|
2008-03-29 13:05:18 +01:00
|
|
|
PORT="${PORTNAME}-${PORTVERSION}" \
|
|
|
|
GEM_NAME="${GEM_NAME}" \
|
|
|
|
GEM_LIB_DIR="${GEM_LIB_DIR}" \
|
|
|
|
GEM_DOC_DIR="${GEM_DOC_DIR}" \
|
|
|
|
GEM_SPEC="${GEM_SPEC}" \
|
|
|
|
GEM_CACHE="${GEM_CACHE}" \
|
|
|
|
EXTRACT_SUFX="${EXTRACT_SUFX}"
|
2005-09-14 15:02:28 +02:00
|
|
|
|
2008-01-13 16:23:44 +01:00
|
|
|
RUBYGEMBIN= ${LOCALBASE}/bin/gem18
|
2005-09-14 15:02:28 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${RUBYGEMBIN} build syntax.gemspec
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${RUBYGEMBIN} install --install-dir ${PREFIX}/lib/ruby/gems/${REV} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.gem
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|