aboutsummaryrefslogtreecommitdiffstats
path: root/www/nanoblogger-extra/Makefile
blob: f3cae13dcc50dd48804ec01777ae7fcd5ed00486 (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
# Created by: Tobias Rehbein <tobias.rehbein@web.de>
# $FreeBSD$

PORTNAME=   nanoblogger-extra
PORTVERSION=    3.4.2
PORTREVISION=   1
CATEGORIES= www
MASTER_SITES=   http://nanoblogger.sourceforge.net/downloads/

MAINTAINER= tobias.rehbein@web.de
COMMENT=    Extras for nanoblogger, a small weblog engine

LICENSE=    GPLv2

RUN_DEPENDS=    nb:www/nanoblogger

WRKSRC=     ${WRKDIR}/nanoblogger-${PORTVERSION}
DATADIR=    ${PREFIX}/share/nanoblogger

NO_BUILD=   yes

OPTIONS_DEFINE= DOCS EXAMPLES

do-install:
.for data in default lang plugins
    @( cd ${WRKSRC}/${data} && \
        ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/${data} "! -empty" )
.endfor

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in COPYING ChangeLog README
    @${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/html
    @${INSTALL_DATA} ${WRKSRC}/docs/*.html ${STAGEDIR}${DOCSDIR}/html

post-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/docs/examples/nanoblogger.bash_completion ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>