request help to port a ruby based svn2git

Steve Wills swills at freebsd.org
Tue Jan 21 04:11:10 UTC 2014


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 at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ruby
> To unsubscribe, send any mail to "freebsd-ruby-unsubscribe at freebsd.org"


More information about the freebsd-ruby mailing list