- Package score file

- Compile python scripts after installatino to pick up a dynamically
  written .py file
This commit is contained in:
Pav Lucistnik 2005-05-07 21:32:55 +00:00
parent 172b04b63c
commit da2dfe286b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134809
4 changed files with 11 additions and 17 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= childsplay PORTNAME= childsplay
PORTVERSION= 0.80.2 PORTVERSION= 0.80.2
PORTREVISION= 1
CATEGORIES= games CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= childsplay MASTER_SITE_SUBDIR= childsplay
@ -22,6 +23,7 @@ LIB_DEPENDS= assetml.0:${PORTSDIR}/devel/libassetml
USE_PYTHON= yes USE_PYTHON= yes
USE_REINPLACE= yes USE_REINPLACE= yes
USE_X_PREFIX= yes USE_X_PREFIX= yes
NO_BUILD= yes
# avoid asking for translation to your local language on install # avoid asking for translation to your local language on install
MAKE_ENV= LANG=C MAKE_ENV= LANG=C

View File

@ -61,16 +61,6 @@
echo -e "\n>>>>>>>>>>> Install childsplay >>>>>>>>>>>>>>>>>>>>" echo -e "\n>>>>>>>>>>> Install childsplay >>>>>>>>>>>>>>>>>>>>"
echo " Installing in $PREFIX" echo " Installing in $PREFIX"
@@ -83,8 +74,9 @@
fi
done
cp -f $CWD/*.py $CPDIR/
+cp -f $CWD/*.pyc $CPDIR/
echo " Copy misc. data files"
for FILE in `ls $CWD/Data`
do
@@ -113,22 +105,14 @@ @@ -113,22 +105,14 @@
echo " Copy docs" echo " Copy docs"
cp -rf $CWD/doc/* $DOCDIR/ cp -rf $CWD/doc/* $DOCDIR/

View File

@ -1,11 +1,10 @@
--- Makefile.orig Wed Apr 20 11:08:53 2005 --- Makefile.orig Sat May 7 23:13:35 2005
+++ Makefile Wed Apr 20 11:08:45 2005 +++ Makefile Sat May 7 23:15:11 2005
@@ -0,0 +1,8 @@ @@ -0,0 +1,7 @@
+PYTHON = /usr/bin/env python +PYTHON = /usr/bin/env python
+ +
+all:
+ @echo "Compiling modules to bytecode..."
+ @$(PYTHON) install.py --compile .
+ @$(PYTHON) install.py --compile ./lib
+install: +install:
+ ./INSTALL.sh + ./INSTALL.sh
+ @echo "Compiling modules to bytecode..."
+ @$(PYTHON) install.py --compile ${PREFIX}/childsplay
+ @$(PYTHON) install.py --compile ${PREFIX}/childsplay/lib

View File

@ -34,6 +34,7 @@ childsplay/ConfParser.pyc
childsplay/CPMenu.pyc childsplay/CPMenu.pyc
childsplay/version.pyc childsplay/version.pyc
childsplay/BASEPATH.py childsplay/BASEPATH.py
childsplay/BASEPATH.pyc
share/doc/childsplay/po/fr/childsplay.po share/doc/childsplay/po/fr/childsplay.po
share/doc/childsplay/po/de/childsplay.po share/doc/childsplay/po/de/childsplay.po
share/doc/childsplay/po/de/new_de.po share/doc/childsplay/po/de/new_de.po
@ -164,3 +165,5 @@ share/childsplay/lib/MemoryData/cardback.png
@dirrm share/childsplay/lib/MemoryData @dirrm share/childsplay/lib/MemoryData
@dirrm share/childsplay/lib @dirrm share/childsplay/lib
@dirrm share/childsplay @dirrm share/childsplay
@cwd /
var/games/childsplay.score