summaryrefslogblamecommitdiffstats
path: root/deskutils/alacarte/Makefile
blob: 22bcb140bfcd51a4a84d5ff23d4fdd70dda8ca58 (plain) (tree)




























                                                                                            
# Created by: Joe Maloney jmaloney@pkgdemon.com>
# $FreeBSD$
#    $MCom$

PORTNAME=   alacarte
PORTVERSION=    3.6.1
CATEGORIES= x11 gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@freebsd.org
COMMENT=    Freedesktop compliant menu editor for GNOME

USE_XZ=     yes
USE_GNOME=  gnomemenus3 gnomeprefix intlhack pygobject3
USES=       gettext gmake pkgconfig
USE_PYTHON= yes
INSTALLS_ICONS= yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

post-patch:
    @${REINPLACE_CMD} -e 's|from gi._glib import|from gi.repository.GLib import|g' \
        ${WRKSRC}/Alacarte/util.py
    @${REINPLACE_CMD} -e "s|ron\['XDG_MENU_PREFIX'\]|ron.get('XDG_MENU_PREFIX', '')|g" \
        ${WRKSRC}/Alacarte/MenuEditor.py

.include <bsd.port.mk>