pkgsrc/devel/ruby-redmine_theme_changer/Makefile
2017-09-16 19:26:41 +00:00

52 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2017/09/16 19:26:50 wiz Exp $
#
PLUGIN_NAME= redmine_theme_changer
DISTNAME= ${PLUGIN_NAME}-0.2.0
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
MASTER_SITES= https://bitbucket.org/haru_iida/${PLUGIN_NAME}/downloads/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.r-labs.org/projects/r-labs/wiki/Theme_Changer_en
COMMENT= Redmine plugin to allow each user to select the theme of Redmine
LICENSE= gnu-gpl-v2
.include "../../meta-pkgs/ruby-redmine-plugins/Makefile.common"
WRKSRC= ${WRKDIR}/${PLUGIN_NAME}
NO_CONFIGURE= yes
NO_BUILD= yes
TC_PLUGIN_DIR= ${REDMINE_PLUGINDIR}/${PLUGIN_NAME}
INSTALLATION_DIRS+= ${TC_PLUGIN_DIR}/app/models
INSTALLATION_DIRS+= ${TC_PLUGIN_DIR}/app/views/my
INSTALLATION_DIRS+= ${TC_PLUGIN_DIR}/config/locales
INSTALLATION_DIRS+= ${TC_PLUGIN_DIR}/db/migrate
INSTALLATION_DIRS+= ${TC_PLUGIN_DIR}/lib
INSTALLATION_DIRS+= ${TC_PLUGIN_DIR}/test/fixtures
INSTALLATION_DIRS+= ${TC_PLUGIN_DIR}/test/unit
do-install:
${INSTALL_DATA} ${WRKSRC}/init.rb \
${DESTDIR}${PREFIX}/${TC_PLUGIN_DIR}
${INSTALL_DATA} ${WRKSRC}/app/models/* \
${DESTDIR}${PREFIX}/${TC_PLUGIN_DIR}/app/models
${INSTALL_DATA} ${WRKSRC}/app/views/my/* \
${DESTDIR}${PREFIX}/${TC_PLUGIN_DIR}/app/views/my
${INSTALL_DATA} ${WRKSRC}/config/locales/*.yml \
${DESTDIR}${PREFIX}/${TC_PLUGIN_DIR}/config/locales
${INSTALL_DATA} ${WRKSRC}/db/migrate/*.rb \
${DESTDIR}${PREFIX}/${TC_PLUGIN_DIR}/db/migrate
${INSTALL_DATA} ${WRKSRC}/lib/*.rb \
${DESTDIR}${PREFIX}/${TC_PLUGIN_DIR}/lib
${INSTALL_DATA} ${WRKSRC}/test/test_helper.rb \
${DESTDIR}${PREFIX}/${TC_PLUGIN_DIR}/test
for i in fixtures unit; do \
${INSTALL_DATA} ${WRKSRC}/test/$$i/* \
${DESTDIR}${PREFIX}/${TC_PLUGIN_DIR}/test/$$i; \
done
.include "../../lang/ruby/rubyversion.mk"
.include "../../mk/bsd.pkg.mk"