aboutsummaryrefslogblamecommitdiff
path: root/databases/ruby-dbdbd/Makefile
blob: 632a21c8e52e271ea38d68004e50097f6d3afe94 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                              

                                                           





                                              
                                                           
































                                                                      
# New ports collection makefile for:		ruby-dbdbd
# Date created:					08 December 2004
# Whom:						Brooks Davis <brooks@aero.org>
#
# $FreeBSD$
#

PORTNAME=	dbdbd
PORTVERSION=	0.2.2
CATEGORIES=	databases ruby
MASTER_SITES=	http://knossos.shu.edu/dblack/dbdbd/ \
		http://raa.ruby-lang.org/cache/${PORTNAME}/
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
EXTRACT_SUFX=	.tgz

MAINTAINER=	brooks@FreeBSD.org
COMMENT=	David Black's DataBase Definer

RESTRICTED=	License only allows unchanged distributions

USE_RUBY=	yes
NO_BUILD=	yes

# DOCS
DOCS=		ChangeLog doc/README doc/README.html
# EXAMPLES relative to samples subdir
EXAMPLES=	movies.rb movies.txt phonebook.rb phonebook.txt

PLIST_FILES=	%%RUBY_SITELIBDIR%%/dbdbd.rb \
		${EXAMPLES:C;^;%%RUBY_MODEXAMPLESDIR%%/;}
PLIST_DIRS=	%%RUBY_MODEXAMPLESDIR%%
.if !defined(NOPORTDOCS)
PLIST_FILES+=	${DOCS:C;^;%%RUBY_MODDOCDIR%%/;:C;doc/;;}
PLIST_DIRS+=	%%RUBY_MODDOCDIR%%
.endif

.include <bsd.port.pre.mk>

do-install:
	${INSTALL_DATA} ${WRKSRC}/dbdbd.rb ${RUBY_SITELIBDIR}
	${MKDIR} ${RUBY_MODEXAMPLESDIR}
.for f in ${EXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/samples/${f} ${RUBY_MODEXAMPLESDIR}/
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.endif

.include <bsd.port.post.mk>