summaryrefslogtreecommitdiff
path: root/www/nanoblogger/Makefile
blob: 496f354d7ddbe761d1e31f7943e4bc5ff7fea62f (plain)
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
# $NetBSD: Makefile,v 1.3 2012/10/28 06:30:23 asau Exp $
#

DISTNAME=	nanoblogger-3.4.2
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=nanoblogger/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://nanoblogger.sourceforge.net/
COMMENT=	Small weblog engine for the UNIX command line
LICENSE=	gnu-gpl-v2

DEPENDS+=	tidy-[0-9]*:../../www/tidy

USE_LANGUAGES=	# none
USE_TOOLS+=	pax bash:run grep:run sed:run

NO_BUILD=	yes

SUBST_CLASSES+=			fix-paths
SUBST_STAGE.fix-paths=		pre-configure
SUBST_MESSAGE.fix-paths=	Fixing absolute paths.
SUBST_FILES.fix-paths+=		nb
SUBST_SED.fix-paths+=		-e 's,NB_BASE_DIR=`dirname $$0`,NB_BASE_DIR=${PREFIX}/share/nanoblogger,'

REPLACE_BASH=	nb

INSTALLATION_DIRS=	bin share/nanoblogger

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/nb ${DESTDIR}${PREFIX}/bin
	cd ${WRKSRC}/ && pax -rw -pp [a-z]* \
		${DESTDIR}${PREFIX}/share/nanoblogger

.include "../../mk/bsd.pkg.mk"