Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2014 04:10:58 +0000
From:      Steve Wills <swills@freebsd.org>
To:        olli hauer <ohauer@gmx.de>
Cc:        freebsd-ruby@freebsd.org
Subject:   Re: request help to port a ruby based svn2git
Message-ID:  <20140121041057.GA9303@mouf.net>
In-Reply-To: <52DBC5DD.8090202@gmx.de>
References:  <52DBC5DD.8090202@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Do you specifically need the version from github? If not, you may have an
easier time of building the port if you fetch from rubygems.org:

http://rubygems.org/gems/svn2git

and let the framework do all the work for you.

Steve

On Sun, Jan 19, 2014 at 01:32:29PM +0100, olli hauer wrote:
> Hi,
> 
> I'm trying create a port for https://github.com/nirvdrum/svn2git/
> 
> Fetching the src from github is working, build and install manually in
> WRKSRC is also OK, but doing this with the ports framework drives me mad.
> 
> If extract is not overwritten the framework looks for files that are not
> provided, same for build target ...
> 
> Reason why I try to create a port, in first tests it worked well and does
> not require a dependency hell like devel/svn2git.
> 
> Perhaps someone from ruby@ can give some hints how to build with the help of
> the ports framework.
> 
> Please CC me, I'm not subscribed.
>  // olli
> 
> 
> PORTNAME=       svn2git
> PORTVERSION=    2.2.2
> CATEGORIES=     devel ruby
> MASTER_SITES=   https://github.com/${GH_ACCOUNT}/${PORTNAME}/tarball/${GITVERSION}/
> PKGNAMEPREFIX=  ruby-
> DISTNAME=       ${PORTNAME}-${GITVERSION}
> EXTRACT_SUFX=   .tar.gz
> 
> MAINTAINER=     ruby@FreeBSD.org
> COMMENT=        Tiny utility for migrating projects from Subversion to Git
> 
> LICENSE=        MIT
> 
> FETCH_ARGS=     -Fpr
> GITVERSION=     11b124b
> GH_ACCOUNT=     nirvdrum
> WRKSRC=         ${WRKDIR}/${GH_ACCOUNT}-${PORTNAME}-${GITVERSION}
> 
> USE_RUBY=               yes
> #GEM_SPEC=       ${WRKSRC}/${PORTNAME}.gemspec
> USE_RUBYGEMS=           yes
> #RUBYGEM_AUTOPLIST=     yes
> 
> extract:
>         -@${RM} -rf ${WRKDIR}
>         -@${MKDIR} ${WRKDIR}
>         ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} -C ${WRKDIR}
> 
> build:
>         (cd ${WRKSRC} && ${RUBYGEMBIN} build ${PORTNAME}.gemspec)
> 
> .include <bsd.port.mk>
> 
> _______________________________________________
> freebsd-ruby@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ruby
> To unsubscribe, send any mail to "freebsd-ruby-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140121041057.GA9303>