failed to uninstall part of files. CIVL

Ryan Schmidt ryandesign at macports.org
Wed May 4 06:02:27 PDT 2016


On May 3, 2016, at 7:10 PM, Abdulrahman Alshammari wrote:

> Hey,
> The attached portfile is working now perfectrly after fixing some issue. I am not sure if what I did is the right one or there is something better than this. When I install civl, it works fine, but when I uninstall it, the files that are in opt/local/bin and opt/local/sbin are not removed. Is there something wrong I made?
> <Portfile>

In the destroot block, you are copying some items directly into ${prefix}. Copy them into ${destroot}${prefix} instead.

You shouldn't copy the same file (civl) to two different places (bin and sbin). Pick one location.

You shouldn't copy the lib directory into the doc directory, because the lib directory contains the java jar file that the program runs. This is program code, not documentation, so it doesn't belong in the doc directory. ${prefix}/share/java or ${prefix}/share/java/${name} would be a more appropriate directory to put it into.

\r




More information about the macports-dev mailing list