2013-09-20 18:21:37 +02:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
2005-06-30 16:05:05 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cycle
|
2005-10-05 16:23:37 +02:00
|
|
|
PORTVERSION= 0.3.1
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 5
|
2005-06-30 16:05:05 +02:00
|
|
|
CATEGORIES= deskutils biology python
|
2009-08-22 02:18:43 +02:00
|
|
|
MASTER_SITES= SF
|
2005-06-30 16:05:05 +02:00
|
|
|
|
2011-09-08 03:18:24 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-06-30 16:05:05 +02:00
|
|
|
COMMENT= A calendar program for women
|
|
|
|
|
2011-09-08 03:18:24 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2005-06-30 16:05:05 +02:00
|
|
|
USE_BZIP2= yes
|
2005-07-01 08:22:05 +02:00
|
|
|
USE_PYTHON_RUN= yes
|
2011-09-08 03:18:24 +02:00
|
|
|
USE_WX= 2.6+
|
2006-12-01 08:39:02 +01:00
|
|
|
WX_COMPS= python
|
2005-06-30 16:05:05 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
|
2013-09-20 18:21:37 +02:00
|
|
|
NO_STAGE= yes
|
2005-06-30 16:05:05 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,"msg","${PREFIX}/share/locale",' \
|
|
|
|
-e 's,"","${DOCSDIR}", ; s,"icons","${DATADIR}/icons",' \
|
2005-10-05 16:23:37 +02:00
|
|
|
-e 's,"bitmaps","${DATADIR}/bitmaps",' ${WRKSRC}/set_dir.py
|
2005-06-30 16:05:05 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${PREFIX}/bin/${PORTNAME}
|
|
|
|
@${MKDIR} ${PREFIX}/lib/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/cal_year.py ${WRKSRC}/dialogs.py \
|
2005-10-05 16:23:37 +02:00
|
|
|
${WRKSRC}/p_rotor.py ${WRKSRC}/save_load.py \
|
2011-09-08 03:18:24 +02:00
|
|
|
${WRKSRC}/set_dir.py ${WRKSRC}/setup.py \
|
|
|
|
${PREFIX}/lib/${PORTNAME}
|
|
|
|
@${MKDIR} ${DATADIR}/bitmaps ${DATADIR}/icons/mini \
|
|
|
|
${DATADIR}/icons/large
|
2005-06-30 16:05:05 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/bitmaps/*.[pb]* ${DATADIR}/bitmaps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/icons/*.xpm ${DATADIR}/icons
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/icons/mini/*.xpm ${DATADIR}/icons/mini
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/icons/large/*.xpm ${DATADIR}/icons/large
|
2011-09-08 03:18:24 +02:00
|
|
|
# These locale directories are not part of mtree(8) template yet
|
2005-10-05 16:23:37 +02:00
|
|
|
.for l in ca cs gl sk
|
|
|
|
@${MKDIR} ${PREFIX}/share/locale/${l}/LC_MESSAGES
|
|
|
|
.endfor
|
|
|
|
.for l in ca cs de es gl ru sk
|
2005-06-30 16:05:05 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/msg/${l}/LC_MESSAGES/${PORTNAME}.mo \
|
|
|
|
${PREFIX}/share/locale/${l}/LC_MESSAGES
|
|
|
|
.endfor
|
2011-09-08 03:18:24 +02:00
|
|
|
# Docs are kind of mandatory here since they are used as internal help
|
2005-06-30 16:05:05 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README*.html ${DOCSDIR}
|
2005-10-05 16:23:37 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
|
2005-06-30 16:05:05 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|