diff options
author | stas <stas@FreeBSD.org> | 2011-08-30 10:07:08 +0800 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2011-08-30 10:07:08 +0800 |
commit | 7b385b75894d2d12df342ef9952d9ee58b7a60f1 (patch) | |
tree | 62693e3032e439313db8606f6c438094ab0843ae /ports-mgmt/portupgrade-devel | |
parent | c3a4520ef91c5df6410e43006c7bfb351c336a31 (diff) | |
download | freebsd-ports-gnome-7b385b75894d2d12df342ef9952d9ee58b7a60f1.tar.gz freebsd-ports-gnome-7b385b75894d2d12df342ef9952d9ee58b7a60f1.tar.zst freebsd-ports-gnome-7b385b75894d2d12df342ef9952d9ee58b7a60f1.zip |
- Make porupgrade-devel port fetch the latest version directly from github,
so it's really -devel.
Diffstat (limited to 'ports-mgmt/portupgrade-devel')
-rw-r--r-- | ports-mgmt/portupgrade-devel/Makefile | 60 | ||||
-rw-r--r-- | ports-mgmt/portupgrade-devel/distinfo | 2 | ||||
-rw-r--r-- | ports-mgmt/portupgrade-devel/pkg-plist | 3 |
3 files changed, 23 insertions, 42 deletions
diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile index 816505550992..12a4eaae6472 100644 --- a/ports-mgmt/portupgrade-devel/Makefile +++ b/ports-mgmt/portupgrade-devel/Makefile @@ -6,29 +6,25 @@ # PORTNAME= portupgrade -PORTVERSION= 20110725 +PORTVERSION= 9999 PORTREVISION= 0 -PORTEPOCH= 1 +PORTEPOCH= 2 CATEGORIES= ports-mgmt -MASTER_SITES= ftp://ftp.SpringDaemons.com/soft/ +MASTER_SITES= https://github.com/stass/pkgtools/tarball PKGNAMESUFFIX= -devel DISTNAME= pkgtools-${DISTVERSION} MAINTAINER= ruby@FreeBSD.org COMMENT= FreeBSD ports/packages management tool (devel version) -OPTIONS= BDB4 "Use Berkeley DB >=2 as backend" on \ - BDB1 "Use Berkeley DB 1.85 as backend" off - CONFLICTS_INSTALL= portupgrade-[0-9]* -USE_BZIP2= yes -USE_RUBY= yes +BUILD_DEPENDS= git:${PORTSDIR}/devel/git +RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb +USE_RUBY= yes USE_LDCONFIG= ${PREFIX}/lib/compat/pkg - MAKE_ARGS= PREFIX="${PREFIX}" RUBY="${RUBY}" - MAN1= pkg_deinstall.1 \ pkg_fetch.1 \ pkg_glob.1 \ @@ -45,6 +41,8 @@ MLINKS= pkgdb.1 pkg_which.1 \ portupgrade.1 portinstall.1 \ portsdb.1 ports_glob.1 MANCOMPRESSED= maybe +NO_CHECKSUM= yes +GIT_REPO_URL= git@github.com:stass/pkgtools.git EXAMPLESDIR= ${PREFIX}/share/examples/pkgtools DOCSDIR= ${PREFIX}/share/doc/pkgtools @@ -54,34 +52,19 @@ INSTALL_TARGET= install INSTALL_TARGET+= install-doc .endif -.include <bsd.port.pre.mk> +do-fetch: + @${MKDIR} ${_DISTDIR}/portupgrade + @(head=`git ls-remote -h ${GIT_REPO_URL} | \ + ${GREP} heads/master | ${AWK} '{print $$1}'`; \ + if [ ! -f "${_DISTDIR}/portupgrade/pkgtools-$${head}.tar.gz" ]; then \ + ${SETENV} ${FETCH_ENV} ${FETCH_BINARY} -m -o \ + "${_DISTDIR}/portupgrade/pkgtools-$${head}.tar.gz" ${MASTER_SITES}/master \ + && ln -sf "${_DISTDIR}/portupgrade/pkgtools-$${head}.tar.gz" \ + "${_DISTDIR}/portupgrade/latest"; fi) -.if defined(WITH_BDB4) -# For PKG_DBDRIVER={bdb_btree,bdb_hash} -RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb -.endif -.if defined(WITH_BDB1) && !defined(WITH_BDB4) -# For PKG_DBDRIVER={bdb1_btree,bdb1_hash} -RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1 -.endif - -pre-extract: -.if !defined(WITH_BDB4) && !defined(WITH_BDB1) - @${ECHO_MSG} "=================================================================" - @${ECHO_MSG} "Neither WITH_BDB4 nor WITH_BDB1 are defined. Will use DBD driver." - @${ECHO_MSG} "=================================================================" -.endif -.if defined(WITH_BDB4) && defined(WITH_BDB1) - @${ECHO_MSG} "=================================================================" - @${ECHO_MSG} "Both WITH_BDB4 and WITH_BDB1 are defined. Will use BDB4 driver." - @${ECHO_MSG} "=================================================================" -.elif defined(WITH_BDB1) && exists(${RUBY_SITEARCHLIBDIR}/bdb.so) - @${ECHO_MSG} "=================================================================" - @${ECHO_MSG} "WITH_BDB1 is defined but ruby-bdb port installed." - @${ECHO_MSG} "Remove ruby-bdb or redefine options." - @${ECHO_MSG} "=================================================================" - @exit 1 -.endif +do-extract: + ${MKDIR} ${WRKSRC} + @tar -C ${WRKSRC}/ --strip-components 1 -xf ${_DISTDIR}/portupgrade/latest post-patch: .SILENT ${REINPLACE_CMD} '/PREFIX/s:\(=[[:space:]]*\)\(.*/usr/local\):\1ENV["LOCALBASE"] || \2:' \ @@ -91,5 +74,6 @@ post-install: if [ ! -f ${PREFIX}/etc/pkgtools.conf ]; then \ ${CP} -p ${PREFIX}/etc/pkgtools.conf.sample ${PREFIX}/etc/pkgtools.conf; \ fi + ${MKDIR} ${PREFIX}/lib/compat/pkg -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/ports-mgmt/portupgrade-devel/distinfo b/ports-mgmt/portupgrade-devel/distinfo deleted file mode 100644 index 19e61dfa8584..000000000000 --- a/ports-mgmt/portupgrade-devel/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (pkgtools-20110725.tar.bz2) = bfe9289730ded745a103eac8a17db01f4c4fc96a40c528dbaf76c3d4e22885e1 -SIZE (pkgtools-20110725.tar.bz2) = 115123 diff --git a/ports-mgmt/portupgrade-devel/pkg-plist b/ports-mgmt/portupgrade-devel/pkg-plist index a7985a9bb64d..7e39dcafca61 100644 --- a/ports-mgmt/portupgrade-devel/pkg-plist +++ b/ports-mgmt/portupgrade-devel/pkg-plist @@ -35,9 +35,8 @@ share/zsh/site-functions/_pkgtools @dirrmtry share/zsh %%EXAMPLESDIR%%/bash/complete.sample %%EXAMPLESDIR%%/tcsh/complete.sample -%%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/README.md @dirrm %%EXAMPLESDIR%%/bash @dirrm %%EXAMPLESDIR%%/tcsh @dirrm %%EXAMPLESDIR%% |