1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

General clean-up:

- convert USE_DOS2UNIX to USES equivalent
- support staging
- utilize options helpers
- fix portlint warnings
- install docs into staging area unconditionally
This commit is contained in:
Ruslan Makhmatkhanov 2014-02-19 21:45:51 +00:00
parent 2502c43732
commit 0353619109
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345154
2 changed files with 17 additions and 39 deletions

View File

@ -18,13 +18,12 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openssl>=0:${PORTSDIR}/security/py-openssl \
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
INSTALLS_ICONS= yes INSTALLS_ICONS= yes
USES= gmake pathfix USES= dos2unix gmake pathfix
USE_BZIP2= yes USE_BZIP2= yes
USE_DOS2UNIX= src/plugins/plugins_i18n.py DOS2UNIX_FILES= src/plugins/plugins_i18n.py
USE_GNOME= pygtk2 USE_GNOME= pygtk2
USE_PYTHON= 2 USE_PYTHON= 2
USE_XORG= x11 xext xscrnsaver USE_XORG= x11 xext xscrnsaver
MAN1= gajim.1 gajim-remote.1 gajim-history-manager.1
CONFIGURE_ENV+= PYTHON=${PYTHON_CMD} CONFIGURE_ENV+= PYTHON=${PYTHON_CMD}
LDFLAGS+= -L${LOCALBASE}/lib LDFLAGS+= -L${LOCALBASE}/lib
@ -32,54 +31,30 @@ CFLAGS+= -I${LOCALBASE}/include
OPTIONS_DEFINE= AVAHI CRYPTO DBUS DOCS GUPNP KEYRING NLS SPELL OPTIONS_DEFINE= AVAHI CRYPTO DBUS DOCS GUPNP KEYRING NLS SPELL
OPTIONS_DEFAULT=DBUS NLS SPELL OPTIONS_DEFAULT=DBUS NLS SPELL
OPTIONS_SUB= yes
CRYPTO_DESC= End to end encryption support CRYPTO_DESC= End to end encryption support
KEYRING_DESC= Gnome Keyring support KEYRING_DESC= Gnome Keyring support
SPELL_DESC= Spell checking support SPELL_DESC= Spell checking support
PORTDOCS= AUTHORS ChangeLog README.html AVAHI_RUN_DEPENDS= avahi-discover:${PORTSDIR}/net/py-avahi
OPTIONS_SUB= yes CRYPTO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto
NLS_USES= gettext DBUS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.82.2:${PORTSDIR}/devel/py-dbus
GUPNP_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gupnp/__init__.py:${PORTSDIR}/net/gupnp-igd
KEYRING_USE= GNOME=pygnomedesktop
NLS_USES= gettext
SPELL_LIB_DEPENDS= libgtkspell.so:${PORTSDIR}/textproc/gtkspell
PORTDOCS= AUTHORS ChangeLog README.html
NO_STAGE= yes
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000 .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-common_resolver.py EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-common_resolver.py
.endif .endif
.if ! ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --disable-nls
.endif
.if ${PORT_OPTIONS:MAVAHI}
RUN_DEPENDS+= avahi-discover:${PORTSDIR}/net/py-avahi
.endif
.if ${PORT_OPTIONS:MDBUS}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dbus>=0.82.2:${PORTSDIR}/devel/py-dbus
.endif
.if ${PORT_OPTIONS:MGUPNP}
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gupnp/__init__.py:${PORTSDIR}/net/gupnp-igd
.endif
.if ${PORT_OPTIONS:MCRYPTO}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto
.endif
.if ${PORT_OPTIONS:MKEYRING}
USE_GNOME+= pygnomedesktop
.endif
.if ${PORT_OPTIONS:MSPELL}
LIB_DEPENDS= gtkspell:${PORTSDIR}/textproc/gtkspell
.endif
post-install: post-install:
.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
pre-build: pre-build:
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/src ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/src

View File

@ -1306,6 +1306,9 @@ share/applications/gajim.desktop
%%DATADIR%%/src/vcard.pyo %%DATADIR%%/src/vcard.pyo
share/icons/hicolor/64x64/apps/gajim.png share/icons/hicolor/64x64/apps/gajim.png
share/icons/hicolor/scalable/apps/gajim.svg share/icons/hicolor/scalable/apps/gajim.svg
man/man1/gajim.1.gz
man/man1/gajim-remote.1.gz
man/man1/gajim-history-manager.1.gz
%%NLS%%share/locale/be/LC_MESSAGES/gajim.mo %%NLS%%share/locale/be/LC_MESSAGES/gajim.mo
%%NLS%%share/locale/be@latin/LC_MESSAGES/gajim.mo %%NLS%%share/locale/be@latin/LC_MESSAGES/gajim.mo
%%NLS%%share/locale/bg/LC_MESSAGES/gajim.mo %%NLS%%share/locale/bg/LC_MESSAGES/gajim.mo