request help to port a ruby based svn2git

olli hauer ohauer at gmx.de
Sun Jan 19 12:32:31 UTC 2014


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>



More information about the freebsd-ruby mailing list