[98388] trunk/dports/databases

mk-macports at techno.ms mk-macports at techno.ms
Fri Oct 5 02:46:23 PDT 2012


On Oct 5, 2012, at 11:24 AM, Jeremy Huddleston Sequoia wrote:
> devel/git-extras/Portfile

Thanks, Jeremy.
In the meantime I have found and used git-flow as an example to come up with this:
---
PortSystem          1.0
PortGroup           github 1.0

github.setup        darkrose csvdb 0.5.1
fetch.type          git

name                csvdb

categories          database
maintainers         mk pixilla openmaintainer
description         csvdb - an SQL engine for csv

platforms           darwin
license             GPL-3

homepage            http://sandbox.ltmnet.com/csvdb
master_sites        https://github.com/darkrose/csvdb

use_bzip2           yes

use_autoreconf      yes

#configure.compiler  clang

depends_build-append port:git-core

depends_lib-append  port:readline\
                    port:gettext

patchfiles          patch_inc-csvdb.h.diff \
                    patch_src-lib-result.c.diff
---

But, unfortunately, "sudo port build" fails:
---
:notice:fetch --->  Fetching distfiles for csvdb:debug:fetch Executing org.macports.fetch (csvdb):debug:fetch Executing: /opt/macports-test/bin/git clone -q https://github.com/darkrose/csvdb.git /opt/macports-test/var/macports/build/_Users_marko_WC_MacPorts_ports_database_csvdb/csvdb/work/csvdb-0.5.1 2>&1
:debug:fetch Executing GIT_DIR=/opt/macportstest/var/macports/build/_Users_marko_WC_MacPorts_ports_database_csvdb/csvdb/work/csvdb-0.5.1/.git GIT_WORK_TREE=/opt/macportstest/var/macports/build/_Users_marko_WC_MacPorts_ports_database_csvdb/csvdb/work/csvdb-0.5.1 /opt/macports-test/bin/git checkout -q 0.5.1 2>&1
:info:fetch error: pathspec '0.5.1' did not match any file(s) known to git.
:info:fetch Command failed: GIT_DIR=/opt/macportstest/var/macports/build/_Users_marko_WC_MacPorts_ports_database_csvdb/csvdb/work/csvdb-0.5.1/.git GIT_WORK_TREE=/opt/macports-test/var/macports/build/_Users_marko_WC_MacPorts_ports_database_csvdb/csvdb/work/csvdb-0.5.1 /opt/macports-test/bin/git checkout -q 0.5.1 2>&1
:info:fetch Exit code: 1
:error:fetch org.macports.fetch for port csvdb returned: Git checkout failed:debug:fetch Error code: NONE:debug:fetch Backtrace: Git checkout failed
---

Funnily enough the repo had been checked out, as you can see:
---
$ ls work/csvdb-0.5.1/
CHANGES  Makefile.am  config.rpath  doc  m4   po   test-altsep.csv   test.csv
LICENSE  README       configure.ac  inc  man  src  test-unnamed.csv
---

I am just guessing that
---
:info:fetch error: pathspec '0.5.1' did not match any file(s) known to git.
---
means that there is no tag associated with this specifier (which is indeed the case), so that I can't use this approach.
I'd need to pass on the exact changeset to githug portgroup, but I guess its not designed for that.
Right?

Greets,
Marko


More information about the macports-dev mailing list