aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ruby-gnustep/Makefile
blob: 36f32484391924b0eeeee45b08ada90b862e7d8f (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# New ports collection makefile for:    Ruby/GNUstep
# Date created:     14 September 2001
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   gnustep
PORTVERSION=    0.2.2
PORTREVISION=   1
CATEGORIES= devel lang ruby
MASTER_SITES=   ${MASTER_SITE_GNUSTEP}
MASTER_SITE_SUBDIR= libs
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   rigs-${PORTVERSION}

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    A Ruby interface to the GNUstep development environment

USE_RUBY=   yes
USE_GNUSTEP=    yes
USE_GNUSTEP_BACK=   yes
USE_GNUSTEP_BUILD=  yes
USE_GNUSTEP_INSTALL=    yes
USE_GNUSTEP_LDCONFIG=   ${GNUSTEP_LOCAL_LIBRARIES}

post-extract:
    ${FIND} ${WRKSRC}/ -type f -name '.cvsignore' -delete
    ${FIND} -d ${WRKSRC}/ -type d -name CVS -exec ${RM} -rf "{}" ";"

post-patch:
    ${RUBY} -i~ -p \
        -e 'gsub(/-lpthread/, "-pthread");' \
        -e 'gsub(/-lgmodel/, "");' \
        ${WRKSRC}/Source/${MAKEFILE}
    ${FIND} ${WRKSRC}/ -type f | \
        ${XARGS} ${RUBY} -i -pe 'gsub(/ ruby -/, " ${RUBY} -")'

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}
    ${CP} -R ${WRKSRC}/Examples/* ${RUBY_MODEXAMPLESDIR}/
    ${MKDIR} ${RUBY_MODDOCDIR}
.for f in ChangeLog NEWS README TODO
    ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.endif

.include <bsd.port.mk>