From owner-svn-ports-all@freebsd.org Wed Nov 11 10:24:02 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB93FA2AD89; Wed, 11 Nov 2015 10:24:02 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 833E81B47; Wed, 11 Nov 2015 10:24:02 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tABAO1CZ053355; Wed, 11 Nov 2015 10:24:01 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tABAO1ut053353; Wed, 11 Nov 2015 10:24:01 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201511111024.tABAO1ut053353@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Wed, 11 Nov 2015 10:24:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r401234 - head/lang/io X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2015 10:24:02 -0000 Author: marino Date: Wed Nov 11 10:24:01 2015 New Revision: 401234 URL: https://svnweb.freebsd.org/changeset/ports/401234 Log: lang/io: uses optios framework, fix couple of bugs During the conversion to use option handlers, I found a couple of typos and obsolete code which caused errors. I also switched to USES+= readline libedit when their options were selected. Modified: head/lang/io/Makefile head/lang/io/Makefile.addons Modified: head/lang/io/Makefile ============================================================================== --- head/lang/io/Makefile Wed Nov 11 10:11:28 2015 (r401233) +++ head/lang/io/Makefile Wed Nov 11 10:24:01 2015 (r401234) @@ -3,7 +3,7 @@ PORTNAME= io PORTVERSION= 2013.12.04 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= lang MAINTAINER= ports@FreeBSD.org @@ -25,6 +25,7 @@ PORTEXAMPLES= * OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_GROUP= ADDONS +OPTIONS_SUB= yes .include "${.CURDIR}/Makefile.addons" @@ -37,7 +38,7 @@ post-patch: ${FIND} ${WRKSRC}/addons -name "*.bak" -o -name "*.orig" -delete post-install: - ${FIND} -d ${STAGEDIR}${PREFIX}/lib/io/addons -type d -empty -exec rmdir {} \; + ${FIND} -d ${STAGEDIR}${PREFIX}/lib/io/addons -type d -empty -delete ${FIND} ${STAGEDIR}${PREFIX}/lib/io/addons -type f -name "*.so" -exec \ ${STRIP_CMD} {} \; ${MKDIR} ${STAGEDIR}${DOCSDIR} Modified: head/lang/io/Makefile.addons ============================================================================== --- head/lang/io/Makefile.addons Wed Nov 11 10:11:28 2015 (r401233) +++ head/lang/io/Makefile.addons Wed Nov 11 10:24:01 2015 (r401234) @@ -70,224 +70,43 @@ OPTIONAL_ADDONS=BigNum \ OPTIONS_GROUP_ADDONS=${OPTIONAL_ADDONS} -.include - -# -# BigNum -# -.if ${PORT_OPTIONS:MBigNum} -LIB_DEPENDS+= libgmp.so:${PORTSDIR}/math/gmp -.endif - -# -# CFFI -# -.if ${PORT_OPTIONS:MCFFI} -LIB_DEPENDS+= libffi.so:${PORTSDIR}/devel/libffi -.endif - -# -# Clutter -# -.if ${PORT_OPTIONS:MClutter} -LIB_DEPENDS+= libclutter-glx-1.0.so:${PORTSDIR}/graphics/clutter -.endif - -# -# DBI -# -.if ${PORT_OPTIONS:MDBI} -LIB_DEPENDS+= libdbi.so:${PORTSDIR}/databases/libdbi -.endif - -# -# EditLine -# -.if ${PORT_OPTIONS:MEditLine} -LIB_DEPENDS+= libedit.so:${PORTSDIR}/devel/libedit -.endif - -# -# Font -# -.if ${PORT_OPTIONS:MFont} -USE_GL+= glut -USE_XORG+= xmu -LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2 -.endif - -# -# GLFW -# -.if ${PORT_OPTIONS:MGLFW} -LIB_DEPENDS+= libglfw.so.0:${PORTSDIR}/graphics/glfw2 -.endif - -# -# Image -# -.if ${PORT_OPTIONS:MImage} -LIB_DEPENDS+= libpng.so:${PORTSDIR}/graphics/png \ - libtiff.so:${PORTSDIR}/graphics/tiff -USES+= jpeg -.endif - -# -# LZO -# -.if ${PORT_OPTIONS:MLZO} -LIB_DEPENDS+= liblzo2.so:${PORTSDIR}/archivers/lzo2 -.endif - -# -# LibSndFile -# -.if ${PORT_OPTIONS:MLibSndFile} -LIB_DEPENDS+= libsndfile.so:${PORTSDIR}/audio/libsndfile -.endif - -# -# Libxml2 -# -.if ${PORT_OPTIONS:MLibxml2} -USE_GNOME+= libxml2 -.endif - -# -# Loudmouth -# -.if ${PORT_OPTIONS:MLoudmouth} -LIB_DEPENDS+= libloudmouth-1.so:${PORTSDIR}/net-im/loudmouth -.endif - -# -# Memcached -# -.if ${PORT_OPTIONS:MMemcached} -LIB_DEPENDS+= libmemcached.so:${PORTSDIR}/databases/libmemcached -.endif - -# -# MySQL -# -.if ${PORT_OPTIONS:MMySQL} -USE_MYSQL+= client -.endif - -# -# Ogg -# -.if ${PORT_OPTIONS:MOgg} -LIB_DEPENDS+= libogg.so:${PORTSDIR}/audio/libogg -.endif - -# -# OpenGL -# -.if ${PORT_OPTIONS:MOpenGL} -USE_GL+= glut -USE_XORG+= xmu - -.endif - -# -# PostgreSQL -# -.if ${PORT_OPTIONS:MPostgreSQL} -USES+= pgsql -.endif - -# -# Python -# -.if ${PORT_OPTIONS:MPython} -USES+= python -.endif - -# -# QDBM -# -.if ${PORT_OPTIONS:MQDBM} -LIB_DEPENDS+= libqdbm.so:${PORTSDIR}/databases/qdbm -.endif - -# -# ReadLine -# -.if ${PORT_OPTIONS:MReadLine} -LIB_DEPENDS+= libhistory.so:${PORTSDIR}/devel/readline -.endif - -# -# Regex -# -.if ${PORT_OPTIONS:MRegex} -LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre -.endif - -# -# SQLite3 -# -.if ${PORT_OPTIONS:MSQLite3} -USE_SQLITE= 3 -SQLITE_LIB= ${LOCALBASE}/lib/libsqlite${SQLITE_VER}.so -.endif - -# SampleRateConverter -# -.if ${PORT_OPTIONS:MSampleRateConverter} -LIB_DEPENDS+= libsamplerate.so:${PORTSDIR}/audio/libsamplerate -.endif - -# -# Socket -# -.if ${PORT_OPTIONS:MSocket} -LIB_DEPENDS+= libevent.so:${PORTSDIR}/devel/libevent2 -.endif - -# -# TagLib -# -.if ${PORT_OPTIONS:MTagLib} -LIB_DEPENDS+= libtag.so:${PORTSDIR}/audio/taglib -.endif - -# -# Theora -# -.if ${PORT_OPTIONS:MTheora} -LIB_DEPENDS+= libtheora.so:${PORTSDIR}/multimedia/libtheora -.endif - -# -# TokyoCabinet -# -.if ${PORT_OPTIONS:MTokyoCabinet} -LIB_DEPENDS+= libtokyocabinet.so:${PORTSDIR}/databases/tokyocabinet -.endif - -# -# UUID -# -.if ${PORT_OPTIONS:MUUID} -LIB_DEPENDS+= libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid -.endif - -# -# Vorbis -# -.if ${PORT_OPTIONS:MBVorbis} -LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis -.endif - -# -# Yajl -# -.if ${PORT_OPTIONS:MYajl} -LIB_DEPENDS+= libyajl.so:${PORTSDIR}/devel/yajl -.endif +BigNum_LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp +CFFI_LIB_DEPENDS= libffi.so:${PORTSDIR}/devel/libffi +Clutter_LIB_DEPENDS= libclutter-glx-1.0.so:${PORTSDIR}/graphics/clutter +DBI_LIB_DEPENDS= libdbi.so:${PORTSDIR}/databases/libdbi +EditLine_USES= libedit +Font_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 +Font_USE= GL=glut XORG=xmu +GLFW_LIB_DEPENDS= libglfw.so.0:${PORTSDIR}/graphics/glfw2 +Image_LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \ + libtiff.so:${PORTSDIR}/graphics/tiff +Image_USES= jpeg +LZO_LIB_DEPENDS= liblzo2.so:${PORTSDIR}/archivers/lzo2 +LibSndFile_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile +Libxml2_USE= GNOME=libxml2 +Loudmouth_LIB_DEPENDS= libloudmouth-1.so:${PORTSDIR}/net-im/loudmouth +Memcached_LIB_DEPENDS= libmemcached.so:${PORTSDIR}/databases/libmemcached +MySQL_USE= MYSQL=client +Ogg_LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg +OpenGL_USE= GL=glut XORG=xmu +PostgreSQL_USES= pgsql +Python_USES= python +QDBM_LIB_DEPENDS= libqdbm.so:${PORTSDIR}/databases/qdbm +ReadLine_USES= readline:port +Regex_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre +SQLite3_USE= SQLITE=3 +SampleRateConverter_LIB_DEPENDS=\ + libsamplerate.so:${PORTSDIR}/audio/libsamplerate +Socket_LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2 +TagLib_LIB_DEPENDS= libtag.so:${PORTSDIR}/audio/taglib +Theora_LIB_DEPENDS= libtheora.so:${PORTSDIR}/multimedia/libtheora +TokyoCabinet_LIB_DEPENDS= \ + libtokyocabinet.so:${PORTSDIR}/databases/tokyocabinet +UUID_LIB_DEPENDS= libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid +Vorbis_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis +Yajl_LIB_DEPENDS= libyajl.so:${PORTSDIR}/devel/yajl +.include ######################################## # WE NOW DEFINE THE FULL LIST OF ADDONS @@ -297,10 +116,7 @@ PLIST_SUB+= ${def}="" .endfor ADDONS= ${DEFAULT_ADDONS} .for opt in ${OPTIONS_GROUP_ADDONS} -. if defined (WITH_${opt}) +. if ${PORT_OPTIONS:M${opt}} ADDONS+= ${opt} -PLIST_SUB+= ${opt}="" -. else -PLIST_SUB+= ${opt}="@comment " . endif .endfor