From owner-svn-ports-branches@freebsd.org Fri Jul 17 15:53:55 2015 Return-Path: Delivered-To: svn-ports-branches@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 9F4BA9A4BC6; Fri, 17 Jul 2015 15:53:55 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::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 7CA6A19E7; Fri, 17 Jul 2015 15:53:55 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6HFrskP057158; Fri, 17 Jul 2015 15:53:54 GMT (envelope-from riggs@FreeBSD.org) Received: (from riggs@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6HFrsvs057157; Fri, 17 Jul 2015 15:53:54 GMT (envelope-from riggs@FreeBSD.org) Message-Id: <201507171553.t6HFrsvs057157@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: riggs set sender to riggs@FreeBSD.org using -f From: Thomas Zander Date: Fri, 17 Jul 2015 15:53:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r392383 - branches/2015Q3/x11-wm/obmenu X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 15:53:55 -0000 Author: riggs Date: Fri Jul 17 15:53:54 2015 New Revision: 392383 URL: https://svnweb.freebsd.org/changeset/ports/392383 Log: MFH: r392381 Fix runtime error: hardcoded signal mapping causes openbox to quit while saving PR: 201211 Submitted by: glolol1@hotmail.com Reviewed by: horia@racoviceanu.com (maintainer) Approved by: ports-secteam (feld) horia@racoviceanu.com (maintainer) Modified: branches/2015Q3/x11-wm/obmenu/Makefile Directory Properties: branches/2015Q3/ (props changed) Modified: branches/2015Q3/x11-wm/obmenu/Makefile ============================================================================== --- branches/2015Q3/x11-wm/obmenu/Makefile Fri Jul 17 15:49:09 2015 (r392382) +++ branches/2015Q3/x11-wm/obmenu/Makefile Fri Jul 17 15:53:54 2015 (r392383) @@ -3,7 +3,7 @@ PORTNAME= obmenu PORTVERSION= 1.0 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= x11-wm MASTER_SITES= SF @@ -12,10 +12,12 @@ COMMENT= Menu manager for Openbox suppor LICENSE= GPLv2 -USES= python +USES= python shebangfix USE_GNOME= pygtk2 USE_PYTHON= distutils PYDISTUTILS_PKGNAME= obMenu +SHEBANG_FILES= obmenu obxml.py pipes/obm-xdg +NO_ARCH= yes PORTDOCS= README OPTIONS_DEFINE= DOCS @@ -25,6 +27,16 @@ SUB_FILES= pkg-message DESKTOP_ENTRIES="Obmenu" "Menu manager for Openbox" ${PORTNAME} \ "${PORTNAME}" "Settings;" "" +post-patch: + @${REINPLACE_CMD} -e '/itm.nodeName.lower()/s|execute|command|; \ + /self.dom.createElement("execute")/s|execute|command|; \ + /xml.dom.minidom.Element("execute")/s|execute|command|; \ + /i.nodeName == "execute"/s|execute|command|' \ + ${WRKSRC}/obxml.py + @${REINPLACE_CMD} -e '/import/{p;s|.*|import signal|;}; \ + /os.kill/s|12)|signal.SIGUSR2)|' \ + ${WRKSRC}/obmenu + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}