From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 6 11:20:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2C6810656C2 for ; Mon, 6 Jul 2009 11:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8C5038FC17 for ; Mon, 6 Jul 2009 11:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n66BK1oM022579 for ; Mon, 6 Jul 2009 11:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n66BK12h022578; Mon, 6 Jul 2009 11:20:01 GMT (envelope-from gnats) Resent-Date: Mon, 6 Jul 2009 11:20:01 GMT Resent-Message-Id: <200907061120.n66BK12h022578@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pavel Plesov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40F181065AC5 for ; Mon, 6 Jul 2009 11:13:36 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 24BD98FC23 for ; Mon, 6 Jul 2009 11:13:36 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n66BDZRQ089160 for ; Mon, 6 Jul 2009 11:13:35 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n66BDZRG089159; Mon, 6 Jul 2009 11:13:35 GMT (envelope-from nobody) Message-Id: <200907061113.n66BDZRG089159@www.freebsd.org> Date: Mon, 6 Jul 2009 11:13:35 GMT From: Pavel Plesov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/136373: [patch] x11-wm/xmonad-contrib - Xft & UTF-8 support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2009 11:20:02 -0000 >Number: 136373 >Category: ports >Synopsis: [patch] x11-wm/xmonad-contrib - Xft & UTF-8 support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Jul 06 11:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Pavel Plesov >Release: FreeBSD 7.2-STABLE >Organization: >Environment: FreeBSD 7.2-STABLE #17: Mon Jun 29 18:24:56 MSD 2009 amd64 >Description: Patch to add support of Xft & UTF-8 to x11-wm/xmonad-contrib port. >How-To-Repeat: >Fix: Patch attached with submission follows: --- /usr/ports/x11-wm/xmonad-contrib/Makefile-orig 2009-07-06 14:42:35.000000000 +0400 +++ /usr/ports/x11-wm/xmonad-contrib/Makefile 2009-07-06 14:54:03.000000000 +0400 @@ -31,6 +31,22 @@ PORTVERSION=${PORTVERSION} \ SUBDIR=${SUBDIR} +OPTIONS= XFT "Enable Xft support for fonts" Off \ + UTF8 "Enable UTF-8 support" Off + +.include + +CONFIGURE_ARGS= --ghc --prefix=${PREFIX} + +.if defined(WITH_XFT) +CONFIGURE_ARGS+= --flags="with_xft" +BUILD_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc \ + hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc +.elif defined(WITH_UTF8) +CONFIGURE_ARGS+= --flags="with_utf8" +BUILD_DEPENDS+= hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc +.endif + .if !defined(NOPORTDOCS) BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock .else @@ -39,7 +55,7 @@ .endif do-configure: - cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX} + cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS} do-build: cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} register --gen-script @@ -51,4 +67,4 @@ cd ${WRKSRC} && ${CABALCMD} install ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh -.include +.include >Release-Note: >Audit-Trail: >Unformatted: