You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 29, 2018. It is now read-only.
While preparing the FreeBSD port of scudcloud, I found it necessary to patch setup.py as follows addressing several packaging-problems:
FreeBSD's autoplist feature for Python-ports looks at the data_files to enumerate the files installed by the packages. Since the minimization of *.js files was added, the resulting *.js files disappeared from that list
Installing ScudCloud's *.js files into share/pixmaps/ was odd, even if its icon could go there
The icon -- scudcloud.png -- was installed into two places, it really does not need to be under resources/
The scudcloud.desktop file hardcodes the icon's location -- the port will fix that, but you may for setup.py to do it automatically
FreeBSD has its own location for license-files and its own mechanism for installing them
FreeBSD ports-framework defines some environment variables as the recommended destination for each package's files. The DATADIR_REL in particular tells the package, where it should install its data-file relative to the prefix (such as share/scudcloud/)
Some of the below changes may be considered FreeBSD-specific, but you may wish to consider addressing the first four items...
Well, the python install section was contributed by several users, so a lot of room to improve (like avoid copy the JS files in icon folders).
The other point: maybe the proper way to handle BSD and non BSD environment is check if DATADIR_REL is defined and use it in positive case. Use the current folders if not defined.
Regarding the hardcoding of /usr as the prefix -- the FreeBSD port will simply replace /usr with $PREFIX during port-building. But you may wish to do this in setup.py, when files are "installed" into build_lib.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
While preparing the FreeBSD port of scudcloud, I found it necessary to patch
setup.py
as follows addressing several packaging-problems:autoplist
feature for Python-ports looks at thedata_files
to enumerate the files installed by the packages. Since the minimization of *.js files was added, the resulting *.js files disappeared from that listshare/pixmaps/
was odd, even if its icon could go therescudcloud.png
-- was installed into two places, it really does not need to be underresources/
scudcloud.desktop
file hardcodes the icon's location -- the port will fix that, but you may forsetup.py
to do it automaticallyDATADIR_REL
in particular tells the package, where it should install its data-file relative to the prefix (such asshare/scudcloud/
)Some of the below changes may be considered FreeBSD-specific, but you may wish to consider addressing the first four items...
Updated version of the patch:
The text was updated successfully, but these errors were encountered: