mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-01 10:59:55 +00:00
. move *.pyc and *.pyo file creation to comms/gammu Makefile
(so those who use comms/gammu with WITH_PYTHON_GAMMU option get the same files and pkg-plists as users of comms/gammu-python); . compile all python files after installing (not just __init__.py); . remove PORTREVISION from comms/gammu-python (should be fine to reflect the one from the master port, and it's bumped indirectly from 1 to 2); . do not bump PORTREVISION for comms/gammu since it's default package s not touched by those changes).
This commit is contained in:
parent
1dc980843c
commit
7f004430b1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=254351
@ -5,7 +5,6 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTREVISION= 1
|
||||
PKGNAMESUFFIX= -python
|
||||
|
||||
CONFLICTS= gammu-[1-9]* gammu-devel-[1-9]*
|
||||
@ -14,8 +13,4 @@ WITH_PYTHON_GAMMU= yes
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../gammu
|
||||
|
||||
post-install:
|
||||
@${PYTHON_CMD} ${PYTHON_SITELIBDIR}/${PORTNAME}/__init__.py
|
||||
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
@ -44,6 +44,13 @@ MAN7= gammu-smsd-files.7 gammu-smsd-mysql.7 gammu-smsd-pgsql.7 \
|
||||
gammu-smsd-dbi.7 gammu-smsd-tables.7
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PYTHON_GAMMU)
|
||||
post-install:
|
||||
.for opt in -Qold -O
|
||||
${PYTHON_CMD} ${opt} -m compileall -l ${PYTHONPREFIX_SITELIBDIR}/gammu
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
|
@ -38,8 +38,13 @@ libdata/pkgconfig/gammu.pc
|
||||
libdata/pkgconfig/gammu-smsd.pc
|
||||
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/__init__.py
|
||||
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/__init__.pyc
|
||||
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/__init__.pyo
|
||||
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/_gammu.so
|
||||
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Data.py
|
||||
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Data.pyc
|
||||
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Data.pyo
|
||||
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Worker.py
|
||||
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Worker.pyc
|
||||
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Worker.pyo
|
||||
@dirrm include/gammu
|
||||
%%WITH_PYTHON_GAMMU%%@dirrm %%PYTHON_SITELIBDIR%%/gammu
|
||||
|
Loading…
Reference in New Issue
Block a user