1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Update to 20140213 (0.4.4-dev)

- Add secondary MASTER_SITES entry
- Rename DOCUMENTATION option to DOCS and add a pre-built docs distfile
- Utilise DOCSDIR macro in pkg-plist
- Change defaults to enable all OPTIONS [1]
- Remove COLOR256 option as devel/ncurses no longer supports building with
  extended colour support
- Rework MAINTAINER_MODE to cater for building both manpages and docs

PR:		ports/185908 [1]
Requested by:	dumbbell [1]
This commit is contained in:
Jase Thew 2014-02-13 18:38:20 +00:00
parent e39a61ed15
commit 23cef1d922
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344137
4 changed files with 130 additions and 125 deletions

View File

@ -1,13 +1,14 @@
# $FreeBSD$
PORTNAME= weechat
PORTVERSION= 20140110
PORTVERSION= 20140213
CATEGORIES= irc
MASTER_SITES= http://perturb.me.uk/distfiles/ \
MASTER_SITES= http://perturb.me.uk/distfiles/weechat-devel/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= jase/weechat-devel
PKGNAMESUFFIX= -devel
DISTNAME= weechat-devel-${GITREV}
DISTFILES= ${DISTNAME}.txz
MAINTAINER= jase@FreeBSD.org
COMMENT= A lightweight and user friendly ncurses based IRC client
@ -19,14 +20,14 @@ UNIQUENAME= ${PORTNAME}${PKGNAMESUFFIX}
CONFLICTS= weechat-0.3*
USE_LDCONFIG= yes
USES= cmake iconv
USES= cmake iconv ncurses
CMAKE_ARGS+= -DENABLE_GUILE=no
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl \
libgcrypt.so:${PORTSDIR}/security/libgcrypt
GITDESC= v0.4.2-211-g3bba891
GITDESC= v0.4.3-14-gc324610
GITREV!= echo "${GITDESC}" | sed -E 's/^.*-g(.{7})$$/\1/'
WRKSRC= ${WRKDIR}/${PORTNAME}-${GITREV}
@ -35,12 +36,12 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${GITREV}
# Release.
OPTIONS_DEFINE= RUBY PYTHON PERL TCL LUA CHARSET BACKTRACE DEBUG ASPELL \
GNUTLS NLS DOCUMENTATION COLOR256 ICON MANPAGES
OPTIONS_DEFAULT=CHARSET BACKTRACE DEBUG MANPAGES
GNUTLS NLS DOCS ICON MANPAGES
OPTIONS_DEFAULTS= RUBY PYTHON PERL TCL LUA CHARSET BACKTRACE DEBUG ASPELL \
GNUTLS ICON MANPAGES
BACKTRACE_DESC= Provide crash backtraces
CHARSET_DESC= Charset conversion support
DOCUMENTATION_DESC= Build and install documentation
LUA_DESC= Lua scripting support
PERL_DESC= Perl scripting support
PYTHON_DESC= Python scripting support
@ -110,7 +111,7 @@ PLIST_SUB+= PERL="@comment "
.endif
.if ${PORT_OPTIONS:MTCL}
USE_TCL= 84+
USE_TCL= 85+
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
CMAKE_ARGS+= -DBSD_TCL_VER=${TCL_VER} \
-DBSD_TCL_LIBDIR=${LOCALBASE}/lib \
@ -131,49 +132,38 @@ CMAKE_ARGS+= -DENABLE_LUA=no
PLIST_SUB+= LUA="@comment "
.endif
.if ${PORT_OPTIONS:MDOCUMENTATION}
BUILD_DEPENDS+= asciidoc:${PORTSDIR}/textproc/asciidoc \
.if defined(MAINTAINER_MODE)
BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \
docbook-xsl>=0:${PORTSDIR}/textproc/docbook-xsl \
asciidoc:${PORTSDIR}/textproc/asciidoc \
source-highlight>=3.1.5:${PORTSDIR}/textproc/source-highlight
CMAKE_ARGS+= -DENABLE_DOC=yes
PLIST_SUB+= DOCUMENTATION=""
CMAKE_ARGS+= -DENABLE_MAN=yes -DMANDIR=${MANPREFIX}/man -DENABLE_DOC=yes
.else
CMAKE_ARGS+= -DENABLE_DOC=no
PLIST_SUB+= DOCUMENTATION="@comment "
CMAKE_ARGS+= -DENABLE_MAN=no -DENABLE_DOC=no
.endif
.if ${PORT_OPTIONS:MDOCS}
PLIST_SUB+= DOCS=""
.if !defined(MAINTAINER_MODE)
DISTFILES+= ${DISTNAME}-docs.txz
.endif
.else
PLIST_SUB+= DOCS="@comment "
.endif
.if ${PORT_OPTIONS:MMANPAGES}
.if defined(MAINTAINER_MODE)
BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \
docbook-xsl>=0:${PORTSDIR}/textproc/docbook-xsl
.if empty(PORT_OPTIONS:MDOCUMENTATION)
BUILD_DEPENDS+= asciidoc:${PORTSDIR}/textproc/asciidoc \
source-highlight>=3.1.5:${PORTSDIR}/textproc/source-highlight
.endif
CMAKE_ARGS+= -DENABLE_MAN=yes -DMANDIR=${MANPREFIX}/man
.else
MASTER_SITES+= ${MASTER_SITE_LOCAL:S/$/:man/}
MASTER_SITE_SUBDIR+= jase/weechat-devel/:man
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \
weechat-devel-20131015-manpages.tar.gz:man
CMAKE_ARGS+= -DENABLE_MAN=no
.endif
PLIST_SUB+= MANPAGES=""
.if !defined(MAINTAINER_MODE)
DISTFILES+= ${DISTNAME}-manpages.txz
.endif
.else
CMAKE_ARGS+= -DENABLE_MAN=no
PLIST_SUB+= MANPAGES="@comment"
PLIST_SUB+= MANPAGES="@comment "
.endif
.if ${PORT_OPTIONS:MBACKTRACE}
LIB_DEPENDS+= execinfo:${PORTSDIR}/devel/libexecinfo
.endif
.if ${PORT_OPTIONS:MCOLOR256}
USES+= ncurses:port
CMAKE_ARGS+= -DNCURSES_INCLUDE_PATH=${LOCALBASE}/include/ncurses
.else
USES+= ncurses
.endif
.if ${PORT_OPTIONS:MICON}
PLIST_SUB+= ICON=""
.else
@ -195,24 +185,17 @@ post-patch:
@${REINPLACE_CMD} -e '/^# icon$$/,/^$$/d' ${WRKSRC}/CMakeLists.txt
.endif
pre-configure:
.if ${PORT_OPTIONS:MCOLOR256}
@${ECHO_MSG} ""
@${ECHO_MSG} "==> You have selected the ncurses 256 color option. Please ensure that"
@${ECHO_MSG} "==> the devel/ncurses port is built with the EXTCOLORS option enabled."
@${ECHO_MSG} "==>"
@${ECHO_MSG} "==> Press Ctrl-C now if you want to re-configure."
@${ECHO_MSG} ""
@sleep 5
.endif
post-install:
.if ${PORT_OPTIONS:MMANPAGES} && !defined(MAINTAINER_MODE)
${INSTALL_MAN} ${WRKDIR}/manpages/weechat.1 ${STAGEDIR}${PREFIX}/man/man1
.for f in de fr it ja
.for f in de fr it ja pl
@${MKDIR} ${STAGEDIR}${PREFIX}/man/${f}/man1
${INSTALL_MAN} ${WRKDIR}/manpages/${f}/weechat.1 ${STAGEDIR}${PREFIX}/man/${f}/man1
.endfor
.endif
.if ${PORT_OPTIONS:MDOCS} && !defined(MAINTAINER_MODE)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/docs/* ${STAGEDIR}${DOCSDIR}/
.endif
${LN} -sf ${PREFIX}/bin/weechat ${STAGEDIR}${PREFIX}/bin/weechat-curses

View File

@ -1,4 +1,6 @@
SHA256 (weechat-devel-3bba891.tar.gz) = 8a1097e762699a9bba1ef10012dae09757a3b18bf103dbe764f84e828a8482be
SIZE (weechat-devel-3bba891.tar.gz) = 2854593
SHA256 (weechat-devel-20131015-manpages.tar.gz) = cd722835372e25b952a5819d4bd3fe2d5a019907ab1fd0bb279c6ece47115fa2
SIZE (weechat-devel-20131015-manpages.tar.gz) = 6490
SHA256 (weechat-devel-c324610.txz) = cb9d42962882adad85bbfadc369f22c4e7d7c3e7ebc5886288e3f2d999ee7344
SIZE (weechat-devel-c324610.txz) = 1559384
SHA256 (weechat-devel-c324610-docs.txz) = c8f55cfe6f5a5db74e98cb6195a72e8cfe4dbab433c65125d1453e82f4b3d62a
SIZE (weechat-devel-c324610-docs.txz) = 675024
SHA256 (weechat-devel-c324610-manpages.txz) = 013f32bafd9897f3e8e4f28ff9a7491a9e13cc8b500460b431a3d66d4122bce9
SIZE (weechat-devel-c324610-manpages.txz) = 6972

View File

@ -1,43 +1,56 @@
--- cmake/FindRuby.cmake.orig 2012-07-06 10:35:11.000000000 +0000
+++ cmake/FindRuby.cmake 2012-07-07 04:50:51.807510722 +0000
@@ -32,13 +32,12 @@
--- cmake/FindRuby.cmake.orig 2014-02-09 18:24:48.291574320 +0000
+++ cmake/FindRuby.cmake 2014-02-09 18:27:20.902318912 +0000
@@ -31,11 +31,6 @@
SET(RUBY_FIND_QUIETLY TRUE)
ENDIF(RUBY_FOUND)
FIND_PROGRAM(RUBY_EXECUTABLE
- NAMES ruby1.9.3 ruby193 ruby1.9.2 ruby192 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby1.8 ruby18 ruby1.6 ruby16 ruby
- PATHS /usr/bin /usr/local/bin /usr/pkg/bin
+ NAMES ${BSD_RUBY_CMD}
)
-FIND_PACKAGE(PkgConfig)
-IF(PKG_CONFIG_FOUND)
- pkg_search_module(RUBY ruby-2.0 ruby-1.9 ruby-1.8)
-ENDIF(PKG_CONFIG_FOUND)
-
IF(RUBY_FOUND)
IF(RUBY_EXECUTABLE)
EXECUTE_PROCESS(
- COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubyhdrdir'] || RbConfig::CONFIG['archdir']"
+ COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubyhdrdir'] || RbConfig::CONFIG['topdir']"
OUTPUT_VARIABLE RUBY_ARCH_DIR
SET(RUBY_LIB "")
@@ -44,14 +39,13 @@
ELSE(RUBY_FOUND)
FIND_PROGRAM(RUBY_EXECUTABLE
- NAMES ruby1.9.3 ruby193 ruby1.9.2 ruby192 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby1.8 ruby18 ruby
- PATHS /usr/bin /usr/local/bin /usr/pkg/bin
+ NAMES ${BSD_RUBY_CMD}
)
@@ -48,12 +47,12 @@
)
IF(RUBY_EXECUTABLE)
EXECUTE_PROCESS(
- COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['libdir']"
+ COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::TOPDIR + '/lib'"
OUTPUT_VARIABLE RUBY_POSSIBLE_LIB_PATH
)
EXECUTE_PROCESS(
- COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubyhdrdir'] || RbConfig::CONFIG['archdir']"
+ COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubyhdrdir'] || RbConfig::CONFIG['topdir']"
OUTPUT_VARIABLE RUBY_ARCH_DIR
)
EXECUTE_PROCESS(
- COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubylibdir']"
+ COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts RbConfig::TOPDIR + '/lib/ruby/' + RbConfig::CONFIG['ruby_version']"
OUTPUT_VARIABLE RUBY_RUBY_LIB_PATH
)
@@ -61,12 +55,12 @@
)
@@ -71,8 +70,7 @@
"${RUBY_INCLUDE_PATH}/${RUBY_ARCH}")
EXECUTE_PROCESS(
- COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['libdir']"
+ COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::TOPDIR + '/lib'"
OUTPUT_VARIABLE RUBY_POSSIBLE_LIB_PATH
)
FIND_LIBRARY(RUBY_LIBRARY
- NAMES ruby-1.9.3 ruby1.9.3 ruby193 ruby-1.9.2 ruby1.9.2 ruby192 ruby-1.9.1 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby1.8 ruby18 ruby1.6 ruby16 ruby
- PATHS ${RUBY_POSSIBLE_LIB_PATH} ${RUBY_RUBY_LIB_PATH}
+ NAMES ${BSD_RUBY_VER}
)
EXECUTE_PROCESS(
- COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubylibdir']"
+ COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::TOPDIR + '/lib/ruby/' + RbConfig::CONFIG['ruby_version']"
OUTPUT_VARIABLE RUBY_RUBY_LIB_PATH
)
IF(RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
@@ -78,8 +72,7 @@
SET(RUBY_INCLUDE_ARCH "${RUBY_INCLUDE_DIRS}/${RUBY_ARCH}")
FIND_LIBRARY(RUBY_LIB
- NAMES ruby-1.9.3 ruby1.9.3 ruby193 ruby-1.9.2 ruby1.9.2 ruby192 ruby-1.9.1 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby1.8 ruby18 ruby
- PATHS ${RUBY_POSSIBLE_LIB_PATH} ${RUBY_RUBY_LIB_PATH}
+ NAMES ${BSD_RUBY_VER}
)
IF(RUBY_LIB AND RUBY_INCLUDE_DIRS)

View File

@ -15,6 +15,7 @@ libdata/pkgconfig/weechat.pc
%%MANPAGES%%man/fr/man1/weechat.1.gz
%%MANPAGES%%man/it/man1/weechat.1.gz
%%MANPAGES%%man/ja/man1/weechat.1.gz
%%MANPAGES%%man/pl/man1/weechat.1.gz
%%ASPELL%%lib/weechat/plugins/aspell.so
%%CHARSET%%lib/weechat/plugins/charset.so
%%LUA%%lib/weechat/plugins/lua.so
@ -22,43 +23,47 @@ libdata/pkgconfig/weechat.pc
%%PYTHON%%lib/weechat/plugins/python.so
%%RUBY%%lib/weechat/plugins/ruby.so
%%TCL%%lib/weechat/plugins/tcl.so
%%DOCUMENTATION%%share/doc/weechat/weechat_dev.en.html
%%DOCUMENTATION%%share/doc/weechat/weechat_faq.de.html
%%DOCUMENTATION%%share/doc/weechat/weechat_faq.en.html
%%DOCUMENTATION%%share/doc/weechat/weechat_faq.fr.html
%%DOCUMENTATION%%share/doc/weechat/weechat_faq.it.html
%%DOCUMENTATION%%share/doc/weechat/weechat_faq.ja.html
%%DOCUMENTATION%%share/doc/weechat/weechat_faq.pl.html
%%DOCUMENTATION%%share/doc/weechat/weechat_plugin_api.en.html
%%DOCUMENTATION%%share/doc/weechat/weechat_plugin_api.fr.html
%%DOCUMENTATION%%share/doc/weechat/weechat_plugin_api.it.html
%%DOCUMENTATION%%share/doc/weechat/weechat_quickstart.de.html
%%DOCUMENTATION%%share/doc/weechat/weechat_quickstart.en.html
%%DOCUMENTATION%%share/doc/weechat/weechat_quickstart.es.html
%%DOCUMENTATION%%share/doc/weechat/weechat_quickstart.fr.html
%%DOCUMENTATION%%share/doc/weechat/weechat_quickstart.ja.html
%%DOCUMENTATION%%share/doc/weechat/weechat_quickstart.it.html
%%DOCUMENTATION%%share/doc/weechat/weechat_quickstart.pl.html
%%DOCUMENTATION%%share/doc/weechat/weechat_quickstart.ru.html
%%DOCUMENTATION%%share/doc/weechat/weechat_relay_protocol.en.html
%%DOCUMENTATION%%share/doc/weechat/weechat_scripting.de.html
%%DOCUMENTATION%%share/doc/weechat/weechat_scripting.en.html
%%DOCUMENTATION%%share/doc/weechat/weechat_scripting.fr.html
%%DOCUMENTATION%%share/doc/weechat/weechat_scripting.it.html
%%DOCUMENTATION%%share/doc/weechat/weechat_scripting.ja.html
%%DOCUMENTATION%%share/doc/weechat/weechat_scripting.pl.html
%%DOCUMENTATION%%share/doc/weechat/weechat_tester.de.html
%%DOCUMENTATION%%share/doc/weechat/weechat_tester.en.html
%%DOCUMENTATION%%share/doc/weechat/weechat_tester.fr.html
%%DOCUMENTATION%%share/doc/weechat/weechat_tester.ja.html
%%DOCUMENTATION%%share/doc/weechat/weechat_tester.it.html
%%DOCUMENTATION%%share/doc/weechat/weechat_tester.pl.html
%%DOCUMENTATION%%share/doc/weechat/weechat_user.de.html
%%DOCUMENTATION%%share/doc/weechat/weechat_user.en.html
%%DOCUMENTATION%%share/doc/weechat/weechat_user.fr.html
%%DOCUMENTATION%%share/doc/weechat/weechat_user.it.html
%%DOCUMENTATION%%share/doc/weechat/weechat_user.ja.html
%%DOCUMENTATION%%share/doc/weechat/weechat_user.pl.html
%%DOCS%%%%DOCSDIR%%/weechat_dev.en.html
%%DOCS%%%%DOCSDIR%%/weechat_dev.fr.html
%%DOCS%%%%DOCSDIR%%/weechat_dev.ja.html
%%DOCS%%%%DOCSDIR%%/weechat_faq.de.html
%%DOCS%%%%DOCSDIR%%/weechat_faq.en.html
%%DOCS%%%%DOCSDIR%%/weechat_faq.fr.html
%%DOCS%%%%DOCSDIR%%/weechat_faq.it.html
%%DOCS%%%%DOCSDIR%%/weechat_faq.ja.html
%%DOCS%%%%DOCSDIR%%/weechat_faq.pl.html
%%DOCS%%%%DOCSDIR%%/weechat_plugin_api.en.html
%%DOCS%%%%DOCSDIR%%/weechat_plugin_api.fr.html
%%DOCS%%%%DOCSDIR%%/weechat_plugin_api.it.html
%%DOCS%%%%DOCSDIR%%/weechat_plugin_api.ja.html
%%DOCS%%%%DOCSDIR%%/weechat_quickstart.de.html
%%DOCS%%%%DOCSDIR%%/weechat_quickstart.en.html
%%DOCS%%%%DOCSDIR%%/weechat_quickstart.es.html
%%DOCS%%%%DOCSDIR%%/weechat_quickstart.fr.html
%%DOCS%%%%DOCSDIR%%/weechat_quickstart.ja.html
%%DOCS%%%%DOCSDIR%%/weechat_quickstart.it.html
%%DOCS%%%%DOCSDIR%%/weechat_quickstart.pl.html
%%DOCS%%%%DOCSDIR%%/weechat_quickstart.ru.html
%%DOCS%%%%DOCSDIR%%/weechat_relay_protocol.en.html
%%DOCS%%%%DOCSDIR%%/weechat_relay_protocol.fr.html
%%DOCS%%%%DOCSDIR%%/weechat_scripting.de.html
%%DOCS%%%%DOCSDIR%%/weechat_scripting.en.html
%%DOCS%%%%DOCSDIR%%/weechat_scripting.fr.html
%%DOCS%%%%DOCSDIR%%/weechat_scripting.it.html
%%DOCS%%%%DOCSDIR%%/weechat_scripting.ja.html
%%DOCS%%%%DOCSDIR%%/weechat_scripting.pl.html
%%DOCS%%%%DOCSDIR%%/weechat_tester.de.html
%%DOCS%%%%DOCSDIR%%/weechat_tester.en.html
%%DOCS%%%%DOCSDIR%%/weechat_tester.fr.html
%%DOCS%%%%DOCSDIR%%/weechat_tester.ja.html
%%DOCS%%%%DOCSDIR%%/weechat_tester.it.html
%%DOCS%%%%DOCSDIR%%/weechat_tester.pl.html
%%DOCS%%%%DOCSDIR%%/weechat_user.de.html
%%DOCS%%%%DOCSDIR%%/weechat_user.en.html
%%DOCS%%%%DOCSDIR%%/weechat_user.fr.html
%%DOCS%%%%DOCSDIR%%/weechat_user.it.html
%%DOCS%%%%DOCSDIR%%/weechat_user.ja.html
%%DOCS%%%%DOCSDIR%%/weechat_user.pl.html
%%ICON%%share/icons/hicolor/32x32/apps/weechat.png
%%NLS%%share/locale/cs/LC_MESSAGES/weechat.mo
%%NLS%%share/locale/de/LC_MESSAGES/weechat.mo
@ -73,13 +78,15 @@ libdata/pkgconfig/weechat.pc
%%NLS%%share/locale/tr/LC_MESSAGES/weechat.mo
@dirrmtry lib/weechat/plugins
@dirrmtry lib/weechat
%%MANPAGES%%@dirrmtry man/pl/man1
%%MANPAGES%%@dirrmtry man/pl
%%MANPAGES%%@dirrmtry man/it/man1
%%MANPAGES%%@dirrmtry man/it
%%MANPAGES%%@dirrmtry man/fr/man1
%%MANPAGES%%@dirrmtry man/fr
%%MANPAGES%%@dirrmtry man/de/man1
%%MANPAGES%%@dirrmtry man/de
%%DOCUMENTATION%%@dirrmtry share/doc/weechat
%%DOCS%%@dirrmtry %%DOCSDIR%%
%%ICON%%@dirrmtry share/icons/hicolor/32x32/apps
%%ICON%%@dirrmtry share/icons/hicolor/32x32
%%ICON%%@dirrmtry share/icons/hicolor