haskell / haskell/cabal

Expose libexec option in simple build system

Đang mở
#708 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Cabal: file format type: enhancement
Ngôn ngữ chính
Haskell
Star
1.7k
Fork
750
Merge trung bình
4 ngày 3 giờ
Pull request đã merge (30 ngày)
28

Mô tả

(Imported from [Trac #717](http://hackage.haskell.org/trac/hackage/ticket/717), reported by guest on 2010-07-23)

For my Bluetile Cabal package (
[http://hackage.haskell.org/package/bluetile](http://hackage.haskell.org/package/bluetile) ) I would like to install some of the executables into the libexec target directory.

Cabal already supports a libexec directory, there is just no easy way to get an executable copied there. So I had to write my own custom hooks.

To simplify things, I would like to suggest the option of marking an executable to be installed in the libexec directory. I propose a simple flag 'Is-Helper-Executable: True/False' which could be specified as part of an 'Executable' section. Setting this to True should result in Cabal installing the executable to the libexec directory.

Quick example of why one wants to use the libexec directory in the first place: Bluetile has a number of such helper applications. While having Bluetile packaged for Debian, it turned out that Debian requires a man page for every binary under /usr/bin. So I would have had to write man pages for every helper application or - which seemed like the proper way to do it - have them installed under /usr/lib/bluetile/ (libexec directory).

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.