Bug 144999 - New port: devel/gitg (GTK git frontend)
Summary: New port: devel/gitg (GTK git frontend)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-24 09:00 UTC by kipz
Modified: 2010-04-15 19:10 UTC (History)
0 users

See Also:


Attachments
file.shar (3.68 KB, text/plain)
2010-03-24 09:00 UTC, kipz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description kipz 2010-03-24 09:00:09 UTC
An alternative Git GUI with an emphasis on graphical 
representation of data and actions. It can:

* Browse revision history
* Commit changes
* Show colorized diff of changes in revisions
* Handles extremely large projects very well

WWW:	http://trac.novowork.com/gitg/wiki

Fix: Patch attached with submission follows:
Comment 1 Dmitry Marakasov freebsd_committer freebsd_triage 2010-03-31 16:13:43 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

I'll take it.
Comment 2 Dmitry Marakasov 2010-04-01 03:41:19 UTC
* kipz (somicide@gmail.com) wrote:

This will require some changes.

First, please don't make shar with global paths. It's a pain to extract
them.
> #	/usr/ports/devel/gitg

Next, we install locale files into share/locale, not lib/locale. In case
of autotools are used (this is, in _this_ case), this can be easily
fixed by adding gnomehack to USE_GNOME. Plist should be corrected
correspondingly.
> Xlib/locale/da/LC_MESSAGES/gitg.mo
> Xlib/locale/de/LC_MESSAGES/gitg.mo
> Xlib/locale/en_GB/LC_MESSAGES/gitg.mo
> Xlib/locale/es/LC_MESSAGES/gitg.mo
> Xlib/locale/fr/LC_MESSAGES/gitg.mo
> Xlib/locale/gl/LC_MESSAGES/gitg.mo
> Xlib/locale/it/LC_MESSAGES/gitg.mo
> Xlib/locale/lt/LC_MESSAGES/gitg.mo
> Xlib/locale/nl/LC_MESSAGES/gitg.mo
> Xlib/locale/pa/LC_MESSAGES/gitg.mo
> Xlib/locale/sl/LC_MESSAGES/gitg.mo
> Xlib/locale/sv/LC_MESSAGES/gitg.mo

Will need @dirrmtry share/applications for this
> Xshare/applications/gitg.desktop

Replace share/gitg with %%DATADIR%%
> Xshare/gitg/icons/gitg.svg
> Xshare/gitg/icons/gitg128x128.png
> Xshare/gitg/icons/gitg16x16.png
> Xshare/gitg/icons/gitg22x22.png
> Xshare/gitg/icons/gitg24x24.png
> Xshare/gitg/icons/gitg32x32.png
> Xshare/gitg/icons/gitg48x48.png
> Xshare/gitg/icons/gitg64x64.png
> Xshare/gitg/language-specs/gitgdiff.lang
> Xshare/gitg/styles/gitgstyle.xml
> Xshare/gitg/ui/gitg-commit-menu.ui
> Xshare/gitg/ui/gitg-menus.xml
> Xshare/gitg/ui/gitg-preferences.ui
> Xshare/gitg/ui/gitg-repository.ui
> Xshare/gitg/ui/gitg-tag.ui
> Xshare/gitg/ui/gitg-ui.xml
> Xshare/gitg/ui/gitg-window.ui

@dirmtry's are required for whole hierarchy starting with share/icons.
I.e

@dirrmtry share/icons/hicolor/16x16/apps
@dirrmtry share/icons/hicolor/16x16
...
@dirrmtry share/icons/hicolor/scalable/apps
@dirrmtry share/icons/hicolor/scalable
@dirrmtry share/icons/hicolor
@dirrmtry share/icons
> Xshare/icons/hicolor/16x16/apps/gitg.png
> Xshare/icons/hicolor/22x22/apps/gitg.png
> Xshare/icons/hicolor/24x24/apps/gitg.png
> Xshare/icons/hicolor/32x32/apps/gitg.png
> Xshare/icons/hicolor/48x48/apps/gitg.png
> Xshare/icons/hicolor/icon-theme.cache
> Xshare/icons/hicolor/scalable/apps/gitg.svg

We prefer full name here
> X# Whom:			kipz <somicide@gmail.com>

> XPORTNAME=	gitg
> XPORTVERSION=	0.0.6
> XCATEGORIES=	devel deskutils gnome
> XMASTER_SITES=	http://trac.novowork.com/gitg/raw-attachment/wiki/Releases/
<empty line missing>
> XMAINTAINER=	somicide@gmail.com
> XCOMMENT=	An alternative Git GUI with an emphasis on graphical representation of data and actions
> X
> XRUN_DEPENDS=	git>=1.7.0.2:${PORTSDIR}/devel/git
> X
> XUSE_GNOME=	gconf2 gtk20 gtksourceview2

lowercase yes is preferred, as in most other ports.
> XUSE_BZIP2=	YES
> XUSE_GMAKE=	YES
> XGNU_CONFIGURE=	YES

No such thing as USE_PERL. There's USE_PERL5, and as I only see perl
mentioned in configure, that should be USE_PERL5_RUN=yes
> XUSE_PERL=	YES

No such thing as CONF_ARGS. There's CONFIGURE_ARGS, and they contain
--prefix by default. --mandir doesn't seem to be needed as well, so this
line should be removed.
> XCONF_ARGS=	--prefix=${PREFIX} --mandir=${PREFIX}/man
> X
> XMAN1=		gitg.1

Simply .include <bsd.port.mk>
> X.include <bsd.port.pre.mk>
> X.include <bsd.port.post.mk>

Also run portlint -A (ports-mgmt/portlint) and fix erros it reports. In
addition to mentioned, it says that you'll need

USE_GETTEXT=yes
INSTALLS_ICONS=yes
GCONF_SCHEMAS=gitg.schemas (with corresponding line removed from plist)

Also it's a good thing to check for WITHOUT_NLS and install locale files
optionally:
http://www.freebsd.org/doc/en/books/porters-handbook/using-gettext.html#AEN3139

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2010-04-01 03:41:38 UTC
State Changed
From-To: open->feedback

Ask for submitter fix.
Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2010-04-15 19:00:59 UTC
State Changed
From-To: feedback->closed

New port added, with minor changes. Thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2010-04-15 19:01:07 UTC
amdmi3      2010-04-15 18:00:49 UTC

  FreeBSD ports repository

  Modified files:
    devel                Makefile 
  Added files:
    devel/gitg           Makefile distinfo pkg-descr pkg-plist 
  Log:
  An alternative Git GUI with an emphasis on graphical
  representation of data and actions. It can:
  
   * Browse revision history
   * Commit changes
   * Show colorized diff of changes in revisions
   * Handles extremely large projects very well
  
  WWW:    http://trac.novowork.com/gitg/wiki
  
  I'm taking maintainership of this port as submitter doesn't have
  access to FreeBSD box to properly test it (discussed via private
  email).
  
  PR:             144999
  Submitted by:   kipz <somicide@gmail.com>
  
  Revision  Changes    Path
  1.3876    +1 -0      ports/devel/Makefile
  1.1       +31 -0     ports/devel/gitg/Makefile (new)
  1.1       +3 -0      ports/devel/gitg/distinfo (new)
  1.1       +9 -0      ports/devel/gitg/pkg-descr (new)
  1.1       +58 -0     ports/devel/gitg/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"