. do not use NOPORTDOCS since after "documentation clarification" [1]

there is no easy way (at least I did'n manage to find one and got
  no responce at the maillist) to do it. *sigh*

. add a variable WITH_PYTHON_GAMMU to optionally install
  python-gammu binding (incorporated into gammu since 1.23.0);

. do not bump PORTREVISION (no changes to default packages).

Reported by:	QAT [1]
This commit is contained in:
Boris Samorodov 2009-03-04 21:01:08 +00:00
parent 729d16e8b2
commit 5a040ba21e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229498
6 changed files with 22 additions and 86 deletions

View file

@ -21,16 +21,19 @@ CMAKE_ARGS+= -DINSTALL_LIBDATA_DIR=${LOCALBASE}/libdata
USE_CMAKE= yes
USE_GNOME= pkgconfig
.if defined(NOPORTDOCS)
EXTRA_PATCHES=files/extra-patch-CMakeLists.txt
.if defined(WITH_PYTHON_GAMMU)
USE_PYTHON= YES
PLIST_SUB= WITH_PYTHON_GAMMU=""
.else
PLIST_SUB= WITH_PYTHON_GAMMU="@comment "
.endif
MAN1= gammu.1 gammu-config.1 jadmaker.1 gammu-smsd.1 gammu-smsd-inject.1 \
gammu-smsd-monitor.1
MAN5= gammu-smsdrc.5 gammurc.5
MAN7= gammu-smsd-files.7 gammu-smsd-mysql.7 gammu-smsd-pgsql.7 \
gammu-smsd-dbi.7 gammu-smsd-tables.7
PORTDOCS= *
.endif
.include <bsd.port.pre.mk>

View file

@ -1,40 +0,0 @@
--- CMakeLists.txt.orig 2007-12-16 23:09:38.185441426 +0300
+++ CMakeLists.txt 2007-12-16 23:12:28.043527300 +0300
@@ -768,37 +768,6 @@
DESTINATION "${INSTALL_LIBDATA_DIR}/pkgconfig"
)
-install (
- FILES ${DOCS}
- DESTINATION "${INSTALL_DOC_DIR}"
- )
-
-install (
- FILES ${SYMBIAN_FILES}
- DESTINATION "${INSTALL_DOC_DIR}/symbian"
- )
-
-foreach (DOC ${DEVELDOCS})
- string (REGEX REPLACE "docs/develop(.*)/[^/]*$" "\\1" DIRNAME ${DOC})
- install (
- FILES ${DOC}
- DESTINATION "${INSTALL_DOC_DIR}/devel/${DIRNAME}"
- )
-endforeach (DOC)
-
-foreach (EXAMPLE ${EXAMPLES})
- string (REGEX REPLACE "(docs/examples|other/php)(.*)/[^/]*$" "\\2" DIRNAME ${EXAMPLE})
- install (
- FILES ${EXAMPLE}
- DESTINATION "${INSTALL_DOC_DIR}/examples/${DIRNAME}"
- )
-endforeach (EXAMPLE)
-
-install (
- FILES ${MAN1_PAGES}
- DESTINATION "${INSTALL_MAN_DIR}/man1"
- )
-
add_subdirectory(common)
# Include tests, we build them also when cross compiling

View file

@ -36,4 +36,9 @@ lib/libGammu.a
lib/libgsmsd.a
libdata/pkgconfig/gammu.pc
libdata/pkgconfig/gammu-smsd.pc
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/__init__.py
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/_gammu.so
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Data.py
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Worker.py
@dirrm include/gammu
%%WITH_PYTHON_GAMMU%%@dirrm %%PYTHON_SITELIBDIR%%/gammu

View file

@ -21,16 +21,19 @@ CMAKE_ARGS+= -DINSTALL_LIBDATA_DIR=${LOCALBASE}/libdata
USE_CMAKE= yes
USE_GNOME= pkgconfig
.if defined(NOPORTDOCS)
EXTRA_PATCHES=files/extra-patch-CMakeLists.txt
.if defined(WITH_PYTHON_GAMMU)
USE_PYTHON= YES
PLIST_SUB= WITH_PYTHON_GAMMU=""
.else
PLIST_SUB= WITH_PYTHON_GAMMU="@comment "
.endif
MAN1= gammu.1 gammu-config.1 jadmaker.1 gammu-smsd.1 gammu-smsd-inject.1 \
gammu-smsd-monitor.1
MAN5= gammu-smsdrc.5 gammurc.5
MAN7= gammu-smsd-files.7 gammu-smsd-mysql.7 gammu-smsd-pgsql.7 \
gammu-smsd-dbi.7 gammu-smsd-tables.7
PORTDOCS= *
.endif
.include <bsd.port.pre.mk>

View file

@ -1,40 +0,0 @@
--- CMakeLists.txt.orig 2007-12-16 23:09:38.185441426 +0300
+++ CMakeLists.txt 2007-12-16 23:12:28.043527300 +0300
@@ -768,37 +768,6 @@
DESTINATION "${INSTALL_LIBDATA_DIR}/pkgconfig"
)
-install (
- FILES ${DOCS}
- DESTINATION "${INSTALL_DOC_DIR}"
- )
-
-install (
- FILES ${SYMBIAN_FILES}
- DESTINATION "${INSTALL_DOC_DIR}/symbian"
- )
-
-foreach (DOC ${DEVELDOCS})
- string (REGEX REPLACE "docs/develop(.*)/[^/]*$" "\\1" DIRNAME ${DOC})
- install (
- FILES ${DOC}
- DESTINATION "${INSTALL_DOC_DIR}/devel/${DIRNAME}"
- )
-endforeach (DOC)
-
-foreach (EXAMPLE ${EXAMPLES})
- string (REGEX REPLACE "(docs/examples|other/php)(.*)/[^/]*$" "\\2" DIRNAME ${EXAMPLE})
- install (
- FILES ${EXAMPLE}
- DESTINATION "${INSTALL_DOC_DIR}/examples/${DIRNAME}"
- )
-endforeach (EXAMPLE)
-
-install (
- FILES ${MAN1_PAGES}
- DESTINATION "${INSTALL_MAN_DIR}/man1"
- )
-
add_subdirectory(common)
# Include tests, we build them also when cross compiling

View file

@ -36,4 +36,9 @@ lib/libGammu.a
lib/libgsmsd.a
libdata/pkgconfig/gammu.pc
libdata/pkgconfig/gammu-smsd.pc
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/__init__.py
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/_gammu.so
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Data.py
%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Worker.py
@dirrm include/gammu
%%WITH_PYTHON_GAMMU%%@dirrm %%PYTHON_SITELIBDIR%%/gammu