2009-04-19 12 views
1

Ich versuche einen Port zu meinem lokalen Repo in MacPorts hinzuzufügen.Ich kann meinem lokalen Repo in MacPorts keinen Port hinzufügen

Ich kenne die guide.

ich/Users/Masi/bin run/MacPorts/ports/Git erfolglos

portindex 
Creating software index in /Users/Masi/bin/MacPorts/ports/Git 

Total number of ports parsed: 0 
Ports successfully parsed: 0  
Ports failed:   0 

Mein Port-Datei ist die folgende

PortSystem   1.0 

name    git-svn 
version    1.0 
categories   git 
maintainers   sl 
description   svn for Git 
long_description Git-svn is a tool which allows Git to use svn 
homepage   http://www.kernel.org/pub/software/scm/git/docs/git-svn.html 
platforms   darwin 
master_sites  http://git-scm.com/ 

checksums   md5 

depends_lib   
        port:syfi-dev\ 
        port:syfi-doc\ 
        port:python-syfi0\ 
        port:libcln5\ 
        port:libsyfi0\ 
        port:libginac1.4\ 
        port:libsyfi0-dev\ 
        port:syfi-bin\ 

#I do not know what these are: I leave them as they are by default 
configure.args  --enable-perl-site-install \ 
        --mandir=${prefix}/share/man 

Mein sources.conf

# MacPorts system wide sources configuration file 
# $Id: sources.conf 42662 2008-11-28 23:18:50Z [email protected] $ 

# To setup a local ports repository, insert a "file://" entry following 
# the example below that points to your local ports directory: 
# Example: file:///Users/landonf/misc/MacPorts/ports 
file:///Users/Masi/bin/MacPorts/ports 
rsync://rsync.macports.org/release/ports 


# The default MacPorts repository should always be tagged [default] 
# for proper functionality of various resources (port groups, mirror 
# sites, etc). If you switch it from the rsync:// URL, be sure to keep 
# it tagged [default]. 

# To prevent a source from synchronizing when `port sync` is used, 
# append [nosync] at the end as shown in this example: 
# Example: file:///Users/landonf/misc/MacPorts/ports [nosync] 

# NOTE: The port command parses source URLs in order and installs the 
#  first occurrance when a port appears in multiple repositories. 
#  So keep "file://" URLs above other URL types. 


# To get the ports tree from the master MacPorts server in California, USA use: 
#  rsync://rsync.macports.org/release/ports/ 
# To get it from the mirror in Trondheim, Norway use: 
#  rsync://trd.no.rsync.macports.org/release/ports/ 
# A current list of mirrors is available at http://trac.macports.org/wiki/Mirrors 
rsync://rsync.macports.org/release/ports/ [default] 

Wie können Sie Ihren lokalen MacPorts erfolgreich einen Port hinzufügen?

Antwort

3

Portfiles muss in der folgenden Art und Weise organisiert werden:

$LOCAL_PORT_DIR/{category}/{portname}/ 

Alle Dateien , einschließlich Portfile, gehen Sie unter dieses Verzeichnis.

In Ihrem Fall Ihre lokalen Port dir ist /Users/Masi/bin/MacPorts/ports, und Ihr Port, git-svn, ist in der Kategorie git, so die Verzeichnisstruktur sollte wie folgt aussehen:

/Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile 

(Im speziellen Fall von git-svn obwohl, können Sie immer den Port installieren git-core mit der Variante +svn, etwa so:. $ sudo port install git-core +svn)

(auch als eine andere Seite zur Kenntnis, Git bezogenen Ports werden in der Regel unter der Kategorie „devel“ organisiert, nicht „git ".)

+0

Wie nennt man die Option +? Ich habe versucht, mehr Dokumentation über solche Optionen erfolglos zu finden. Mein MacPorts tabCompletion findet solche Optionen nicht. –

+0

Ich erhalte die folgende Fehlermeldung: http://dpaste.com/35580/ –

+2

Sie geben Port-Varianten mit dem + Zeichen an. Der Fehler wird auch durch die Tatsache verursacht, dass Sie bereits git-core installiert haben - deinstallieren Sie zunächst git-core und installieren Sie es anschließend erneut mit sudo port install git-core + svn. – mipadi

1

Ich bin mir nicht sicher, aber ich denke, Sie müssen Ihre Verzeichnisstruktur in dieses Format ändern: portcategory/portname/Portfile. In Ihrem Fall wäre das /Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile sein

Dann versuchen Portindex aus der Wurzel von Ihnen lokalen Repo (/Users/Masi/bin/MacPorts/ports) laufen

+0

Es gibt mir das gleiche Ergebnis nach dem Ausführen von $ portindex. –

Verwandte Themen