Question

Je suis en train d'ajouter un port à mon repo local MacPorts.

Je sais que le Guide .

Je cours à / Utilisateurs / Masi / bin / MacPorts / ports / Git sans succès

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

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

Mon Port fichier est le suivant:

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

Mon sources.conf

#  MacPorts system wide sources configuration file
#  $Id: sources.conf 42662 2008-11-28 23:18:50Z raimue@macports.org $

#  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]

Comment pouvez-vous ajouter un port à votre MacPorts locale avec succès?

Était-ce utile?

La solution

Portfiles doit être organisé de la manière suivante:

$LOCAL_PORT_DIR/{category}/{portname}/

Tous les fichiers, y compris Portfile, allez dans ce répertoire.

Dans votre cas, votre port local dir est /Users/Masi/bin/MacPorts/ports et votre port, git-svn, est dans la catégorie git, de sorte que la structure de votre répertoire devrait ressembler à ceci:

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

(Dans le cas particulier de git-svn, cependant, vous pouvez toujours installer le port git-core avec la +svn variante, comme suit:. $ sudo port install git-core +svn)

(En outre, comme une autre note de côté, les ports liés à Git sont généralement organisés dans la catégorie "devel", pas "git".)

Autres conseils

Je ne suis pas sûr, mais je pense que vous devez changer votre structure de répertoire pour ce format: portcategory/portname/Portfile. Dans votre cas, ce serait /Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile

Ensuite, essayez d'exécuter portindex de la racine de vous repo (/Users/Masi/bin/MacPorts/ports) locale

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top