aboutsummaryrefslogtreecommitdiffstats
path: root/devel/rubygem-hoe/Makefile
blob: 9a917a1bb83481453aa7eecb81420679fbd1e77d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Ports collection makefile for:    rubygem-hoe
# Date created:             5 December 2006
# Whom:                 Jonathan Weiss (<jw@innerewut.de>)
#
# $FreeBSD$

PORTNAME=   hoe
PORTVERSION=    1.5.0
CATEGORIES= devel rubygems
MASTER_SITES=   ${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR= seattlerb

MAINTAINER= jw@innerewut.de
COMMENT=    A simple rake/rubygems helper for project Rakefiles

BUILD_DEPENDS=  rake:${PORTSDIR}/devel/rubygem-rake \
        rubyforge:${PORTSDIR}/devel/rubygem-rubyforge
RUN_DEPENDS=    ${BUILD_DEPENDS}

post-install:
    @${ECHO} bin/sow > ${TMPPLIST}
    @${ECHO} ${GEM_CACHE} >> ${TMPPLIST}
    @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},${GEM_DOC_DIR},' >> ${TMPPLIST}
    @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},${GEM_LIB_DIR},' >> ${TMPPLIST}
    @${ECHO} ${GEM_SPEC} >> ${TMPPLIST}
    @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},@dirrm ${GEM_LIB_DIR},' >> ${TMPPLIST}
    @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},@dirrm ${GEM_DOC_DIR},' >> ${TMPPLIST}

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/devel/ruby-gems/Makefile.common"
.include <bsd.port.post.mk>