Vote count:
0
I am trying to create a home-brew formula for tableutil. I have come up with the following:
require "formula"
class Tableutil < Formula
homepage "http://ift.tt/1jKmcWK"
url "http://ift.tt/1iet81H"
sha1 "58ccb6826f28bf4e97b320317741a3971516279a"
version "0.6"
def install
system "make", "PREFIX=#{prefix}"
system "install"
end
end
however I get the following error:
brew install tableutil
==> Downloading http://ift.tt/1iet81H
Already downloaded: /Library/Caches/Homebrew/tableutil-0.6.tar.gz
==> make PREFIX=/usr/local/Cellar/tableutil/0.6
==> install
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
This is because the makefile for taleutil has the following
PREFIX?=/usr/local
INSTALL_BIN?=${PREFIX}/bin
INSTALL_MAN?=${PREFIX}/man/man1
INSTALL=/usr/bin/install
install: ${TARGET}
${INSTALL} -g bin -o root -m 755 ${TARGET} ${INSTALL_BIN}
${INSTALL} -g bin -o root -m 644 ${MAN} ${INSTALL_MAN}
I use system "make", "PREFIX=#{prefix}" to fix the Makefile so that it installs in the appropriate cellar, however I believe this is causing issues with the install component of the makefile, but I'm not sure what the issue is.
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire