From owner-freebsd-ports@FreeBSD.ORG Fri Jan 21 22:01:42 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D113F106564A for ; Fri, 21 Jan 2011 22:01:42 +0000 (UTC) (envelope-from me@janh.de) Received: from mailhost.uni-hamburg.de (mailhost.uni-hamburg.de [134.100.32.155]) by mx1.freebsd.org (Postfix) with ESMTP id 4B29F8FC12 for ; Fri, 21 Jan 2011 22:01:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailhost.uni-hamburg.de (Postfix) with ESMTP id ECF969005F; Fri, 21 Jan 2011 22:46:36 +0100 (CET) X-Virus-Scanned: by University of Hamburg (RRZ/mailhost) Received: from mailhost.uni-hamburg.de ([127.0.0.1]) by localhost (mailhost.uni-hamburg.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id r-JJ8b59aSqY; Fri, 21 Jan 2011 22:46:36 +0100 (CET) Received: from nb981.math (g224001214.adsl.alicedsl.de [92.224.1.214]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: fmjv004) by mailhost.uni-hamburg.de (Postfix) with ESMTPSA id 9553E9005E; Fri, 21 Jan 2011 22:46:36 +0100 (CET) Message-ID: <4D39FEBA.3000806@janh.de> Date: Fri, 21 Jan 2011 22:46:34 +0100 From: Jan Henrik Sylvester User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101219 Thunderbird/3.1.7 MIME-Version: 1.0 To: ports-list freebsd Content-Type: multipart/mixed; boundary="------------060700010505090206070003" Subject: Xournal: Please, help me with my first port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 22:01:42 -0000 This is a multi-part message in MIME format. --------------060700010505090206070003 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Finally, I found an application worse having that is not in ports and looked simple enough to try: Xournal is my first attempt to create a new port. I followed the handbook and did the basic testing with porttools: There are warnings about considering to use DATADIR if the port was DATADIR-safe, but I do not assume it to be. Moreover, there is a warning about my post-patch line. I think the warning is wrong, but I am unsure about that line anyhow. The desktop-install target in Makefile.in is wrong for FreeBSD, but there is probably a better way to fix it. Is my attempt to use the desktop-install target via post-install correct? Do all the files installed by the post-install target go to the correct locations? Is there anything else I should fix before submitting the port as pr? In case the attachment does not make it to the list, I have placed a copy here: http://www.math.uni-hamburg.de/home/sylvester/xournal.shar Thanks, Jan Henrik --------------060700010505090206070003 Content-Type: text/plain; name="xournal.shar" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xournal.shar" # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # graphics/xournal # graphics/xournal/pkg-plist # graphics/xournal/pkg-descr # graphics/xournal/distinfo # graphics/xournal/Makefile # echo c - graphics/xournal mkdir -p graphics/xournal > /dev/null 2>&1 echo x - graphics/xournal/pkg-plist sed 's/^X//' >graphics/xournal/pkg-plist << '9b172bb60580b3357f245d535c347f95' Xbin/xournal Xshare/applications/xournal.desktop Xshare/icons/hicolor/scalable/apps/xournal.svg Xshare/icons/hicolor/scalable/mimetypes/gnome-mime-application-x-xoj.svg Xshare/icons/hicolor/scalable/mimetypes/xoj.svg Xshare/mime/packages/xournal.xml Xshare/mimelnk/application/x-xoj.desktop Xshare/xournal/html-doc/manual.html Xshare/xournal/html-doc/pixmaps Xshare/xournal/html-doc/screenshot.png Xshare/xournal/pixmaps/black.png Xshare/xournal/pixmaps/blue.png Xshare/xournal/pixmaps/default-pen.png Xshare/xournal/pixmaps/eraser.png Xshare/xournal/pixmaps/fullscreen.png Xshare/xournal/pixmaps/gray.png Xshare/xournal/pixmaps/green.png Xshare/xournal/pixmaps/hand.png Xshare/xournal/pixmaps/highlighter.png Xshare/xournal/pixmaps/lasso.png Xshare/xournal/pixmaps/lightblue.png Xshare/xournal/pixmaps/lightgreen.png Xshare/xournal/pixmaps/magenta.png Xshare/xournal/pixmaps/medium.png Xshare/xournal/pixmaps/orange.png Xshare/xournal/pixmaps/pencil.png Xshare/xournal/pixmaps/rect-select.png Xshare/xournal/pixmaps/recycled.png Xshare/xournal/pixmaps/red.png Xshare/xournal/pixmaps/ruler.png Xshare/xournal/pixmaps/shapes.png Xshare/xournal/pixmaps/stretch.png Xshare/xournal/pixmaps/text-tool.png Xshare/xournal/pixmaps/thick.png Xshare/xournal/pixmaps/thin.png Xshare/xournal/pixmaps/white.png Xshare/xournal/pixmaps/xoj.svg Xshare/xournal/pixmaps/xournal.png Xshare/xournal/pixmaps/xournal.svg Xshare/xournal/pixmaps/yellow.png X@dirrm share/xournal/pixmaps X@dirrm share/xournal/html-doc X@dirrm share/xournal X@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true X@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true X@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime X@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime X@dirrmtry share/mimelnk/application X@dirrmtry share/mimelnk X@dirrmtry share/mime/packages X@dirrmtry share/mime X@dirrmtry share/icons/hicolor/scalable/mimetypes X@dirrmtry share/icons/hicolor/scalable/apps X@dirrmtry share/icons/hicolor/scalable X@dirrmtry share/icons/hicolor X@dirrmtry share/icons X@dirrmtry share/applications 9b172bb60580b3357f245d535c347f95 echo x - graphics/xournal/pkg-descr sed 's/^X//' >graphics/xournal/pkg-descr << '805b216eb83a8fb3d83ce023e5fa4c74' XXournal is an application for notetaking, sketching, keeping a Xjournal using a stylus. It is similar to Microsoft Windows Journal or Xto other alternatives such as Jarnal, Gournal, and NoteLab. X XXournal aims to provide superior graphical quality (subpixel Xresolution) and overall functionality; however it lacks the Xcollaborative features of Jarnal. Since Xournal is still in its early Xdevelopment stages, it may not be fully stable, and some features Xhave not been implemented yet. X XXournal supports annotation of PDF files through the Poppler library; XPDF files, much like paper styles, are loaded as an immutable Xbackground image. X XWWW: http://xournal.sourceforge.net 805b216eb83a8fb3d83ce023e5fa4c74 echo x - graphics/xournal/distinfo sed 's/^X//' >graphics/xournal/distinfo << 'dbdf531c5f805ea1b755f1dff0d9beb7' XSHA256 (xournal-0.4.5.tar.gz) = a7d7c2cb544451939779276e6e5ee5acc756bd0efb5253de15dc00bfe07755d1 XSIZE (xournal-0.4.5.tar.gz) = 425062 dbdf531c5f805ea1b755f1dff0d9beb7 echo x - graphics/xournal/Makefile sed 's/^X//' >graphics/xournal/Makefile << '7b6ea3301597bf7d5161b3f76878ae21' X# New ports collection makefile for: xournal X# Date created: 21 Jan 2011 X# Whom: Jan Henrik Sylvester X# X# $FreeBSD$ X# X XPORTNAME= xournal XPORTVERSION= 0.4.5 XCATEGORIES= graphics XMASTER_SITES= SF X XMAINTAINER= me@janh.de XCOMMENT= A notetaking application that can annotate PDFs X XLIB_DEPENDS= poppler-glib.5:${PORTSDIR}/graphics/poppler-gtk X XMAKE_JOBS_SAFE= yes XUSE_GNOME= desktopfileutils libgnomecanvas XGNU_CONFIGURE= yes XINSTALLS_ICONS= yes X XOPTIONS= GHOSTSCRIPT "Install ghostscript (PS/PDF as bitmap bg)" on X X.include X X.if !defined(WITHOUT_GHOSTSCRIPT) XUSE_GHOSTSCRIPT_RUN= yes X.endif X Xpost-patch: X @${REINPLACE_CMD} -e 's|$$(DESTDIR)/usr/share/|$$(DESTDIR)$$$$desktopdir/|g' -e 's|/usr/local/share|"$$(datadir)"|' ${WRKSRC}/Makefile.in X Xpost-install: X @cd ${WRKSRC} && ${MAKE} desktop-install X X.include 7b6ea3301597bf7d5161b3f76878ae21 exit --------------060700010505090206070003--