无法将端口添加到 MacPorts 中的本地存储库
我正在尝试将端口添加到 MacPorts 中的本地存储库。
我知道指南。
我在 /Users/Masi/bin/MacPorts/ports/Git 运行失败
portindex
Creating software index in /Users/Masi/bin/MacPorts/ports/Git
Total number of ports parsed: 0
Ports successfully parsed: 0
Ports failed: 0
我的端口文件如下
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
我的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]
如何添加端口成功连接到本地 MacPort 吗?
I am trying to add a port to my local repo in MacPorts.
I know the guide.
I run at /Users/Masi/bin/MacPorts/ports/Git unsuccessfully
portindex
Creating software index in /Users/Masi/bin/MacPorts/ports/Git
Total number of ports parsed: 0
Ports successfully parsed: 0
Ports failed: 0
My port-file is the following
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
My 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]
How can you add a port to your local MacPorts successfully?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Portfiles必须按以下方式组织:
所有文件,包括
Portfile
,都位于该目录下。在您的情况下,您的本地端口目录是
/Users/Masi/bin/MacPorts/ports
,并且您的端口git-svn
属于git 类别
,所以你的目录结构应该如下所示:(不过,在
git-svn
的特殊情况下,你始终可以使用以下命令安装端口git-core
变体+svn
,如下所示:$ sudo port install git-core +svn
。)(另外,作为另一个旁注,Git 相关的端口通常组织在类别“devel”,而不是“git”。)
Portfiles must be organized in the following fashion:
All files, including
Portfile
, go under that directory.In your case, your local port dir is
/Users/Masi/bin/MacPorts/ports
, and your port,git-svn
, is in the categorygit
, so your directory structure should look like this:(In the special case of
git-svn
, though, you can always install the portgit-core
with the variant+svn
, like so:$ sudo port install git-core +svn
.)(Also, as another side note, Git-related ports are typically organized under the category "devel", not "git".)
我不确定,但我认为您需要将目录结构更改为以下格式:
portcategory/portname/Portfile
。 在您的情况下,这将是/Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile
然后尝试从本地存储库的根目录运行 portindex (
/Users/ Masi/bin/MacPorts/ports
)I'm not sure but I think you need to change your directory structure to this format:
portcategory/portname/Portfile
. In your case that would be/Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile
Then try to run portindex from the root of you local repo (
/Users/Masi/bin/MacPorts/ports
)