summaryrefslogtreecommitdiffstats
path: root/x11-fm/nemo/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-fm/nemo/Makefile')
-rw-r--r--x11-fm/nemo/Makefile65
1 files changed, 65 insertions, 0 deletions
diff --git a/x11-fm/nemo/Makefile b/x11-fm/nemo/Makefile
new file mode 100644
index 000000000..9396e3ae6
--- /dev/null
+++ b/x11-fm/nemo/Makefile
@@ -0,0 +1,65 @@
+# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
+# $FreeBSD$
+
+PORTNAME= nemo
+PORTVERSION= 1.7.1
+CATEGORIES= x11-fm gnome
+DIST_SUBDIR= gnome3
+
+MAINTAINER= gustau.perez@gmail.com
+COMMENT= File manager for the Cinnamon desktop
+
+BUILD_DEPENDS= ${LOCALBASE}/share/icons/gnome/index.theme:${PORTSDIR}/misc/gnome-icon-theme \
+ gtkdocize:${PORTSDIR}/textproc/gtk-doc \
+ gnome-autogen.sh:${PORTSDIR}/devel/gnome-common \
+ ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:${PORTSDIR}/devel/gsettings-desktop-schemas \
+ g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
+LIB_DEPENDS= exif:${PORTSDIR}/graphics/libexif \
+ notify:${PORTSDIR}/devel/libnotify \
+ exempi:${PORTSDIR}/textproc/exempi
+RUN_DEPENDS= ${LOCALBASE}/share/icons/gnome/index.theme:${PORTSDIR}/misc/gnome-icon-theme \
+ ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:${PORTSDIR}/devel/gsettings-desktop-schemas
+
+USE_GITHUB= yes
+GH_ACCOUNT= linuxmint
+GH_TAGNAME= 1.7.1
+GH_COMMIT= 63f7b44
+
+INSTALLS_ICONS= yes
+USE_GMAKE= yes
+USE_GETTEXT= yes
+USES= pathfix
+USE_GNOME= gnomeprefix intlhack gnomedesktop3 libxml2 desktopfileutils
+USE_LDCONFIG= yes
+USE_AUTOTOOLS= libtool autoconf automake
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+CONFIGURE_ARGS= --enable-static --disable-packagekit --disable-tracker
+MAKE_ENV= G_CHARSET_ALIAS="${LOCALBASE}/libdata/charset.alias"
+
+GLIB_SCHEMAS= org.nemo.gschema.xml
+
+MAN1= nemo-connect-server.1 \
+ nemo.1
+
+post-patch:
+ @${MKDIR} ${WRKSRC}/files${PREFIX}
+
+ @${MV} ${WRKSRC}/files/usr/share ${WRKSRC}/files${PREFIX}
+
+ @${REINPLACE_CMD} -e 's|find|find ${WRKSRC}/files|g' \
+ ${WRKSRC}/files/Makefile.in
+
+ @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
+ ${WRKSRC}/src/nemo-properties-window.c
+
+ @${FIND} ${WRKSRC} -name \* | ${XARGS} ${EGREP} -l "#!.*\/usr\/bin\/python" | \
+ ${XARGS} ${REINPLACE_CMD} -e "s|#!.*python.*|#!/usr/bin/env python|g"
+
+pre-configure:
+ cd ${WRKSRC} && NOCONFIGURE=yes ${SH} ./autogen.sh
+
+post-install:
+ @-update-desktop-database
+
+.include <bsd.port.mk>