aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/alexandria/Makefile
blob: 623fe54f1b2c906306d85be5bb2ea7564be979e4 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# New ports collection makefile for:    Alexandria
# Date created:     18 March 2005
# Whom:         Mitsuru YOSHIDA <mitsuru@riken.jp>
#
# $FreeBSD$
#

PORTNAME=   alexandria
PORTVERSION=    0.6.5
PORTREVISION=   1
CATEGORIES= deskutils ruby
MASTER_SITES=   RF
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=    ruby

MAINTAINER= mitsuru@riken.jp
COMMENT=    A GNOME application to help you manage your book collection

BUILD_DEPENDS=  rake:${PORTSDIR}/devel/rubygem-rake
RUN_DEPENDS=    ${RUBY_SITELIBDIR}/gettext.rb:${PORTSDIR}/devel/ruby-gettext \
        ${RUBY_SITEARCHLIBDIR}/gnome2.so:${PORTSDIR}/x11/ruby-gnome2 \
        ${RUBY_SITEARCHLIBDIR:S/${PREFIX}/${LOCALBASE}/}/gconf2.so:${PORTSDIR}/devel/ruby-gconf2 \
        ${RUBY_SITEARCHLIBDIR:S/${PREFIX}/${LOCALBASE}/}/libglade2.so:${PORTSDIR}/devel/ruby-libglade2 \
        rubygem-zoom>=0:${PORTSDIR}/devel/rubygem-zoom \
        rubygem-hpricot>=0:${PORTSDIR}/www/rubygem-hpricot

USE_GNOME=  gnomehier intltool
INSTALLS_ICONS= yes
INSTALLS_OMF=   yes
USE_GETTEXT=    yes
USE_RUBY=   yes

MAN1=       alexandria.1

DOCS=       NEWS README TODO
GCONF_SCHEMAS=  alexandria.schemas

RUBY_REQUIRE=   Ruby > 180
CONFIGURE_ARGS= "--prefix=${PREFIX}"

USR2FIX=    Rakefile alexandria.desktop.in data/menu/alexandria \
        data/omf/alexandria/alexandria-C.omf \
        data/omf/alexandria/alexandria-fr.omf

.include <bsd.port.pre.mk>

.if !defined(RUBY_PROVIDED)
IGNORE=     only works with Ruby 1.8.0 or later
.endif

pre-build:
    ${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|' \
        ${USR2FIX:S|^|${WRKSRC}/|}
.if defined(NOPORTDOCS)
    ${REINPLACE_CMD} -e \
        's/default_groups.push(\*documentation_installation)//' \
        ${WRKSRC}/tasks.rb
.endif

do-build:
    @cd ${WRKSRC} && rake PREFIX=${PREFIX} build

do-install:
    @cd ${WRKSRC} && rake PREFIX=${PREFIX} install

post-install:
    @${MKDIR} ${LOCALBASE}/etc/gconf/schemas
    @${INSTALL_DATA} ${WRKSRC}/schemas/alexandria.schemas \
        ${LOCALBASE}/etc/gconf/schemas/
#.if !defined(NOPORTDOCS)
#   @${MKDIR} ${RUBY_MODDOCDIR}
#.for f in ${DOCS}
#   @${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
#.endfor
#.endif

.include <bsd.port.post.mk>