The port does not contain the emacs agda-mode files.
I'm a bit obscured. agda-mode executable doesn't seem to work correctly. Do I need to simply install .el files or fix agda-mode too?
(In reply to Gleb Popov from comment #1) Unfortunately yes, agda-mode needs to be fixed too. Currently 'agda-mode locate' provides a path for the agda2.el file in the ports' temporary work directory which is correct until cleaning.
I have fixed the path agda-mode outputs and also installed .el files. The "agda-mode compile" produces .elc files, should I install them too?
(In reply to Gleb Popov from comment #3) Thank you for your fast reply! After the installation I need to run "agda-mode setup" anyway so I don't mind compiling the scripts afterwards with "agda-mode compile". But I have little experience with ports and I don't know whether it is common practice to include them or not.
(In reply to fractran from comment #4) If you are going to run this command yourself, it wouldn't work, as it would try to create .elc files in LOCALBASE, which is not writable by a regular user. I guess, I'll have to generate this files during built and install them too. I'll commit a fix for this shortly.
A commit references this bug: Author: arrowd Date: Wed May 6 20:31:29 UTC 2020 New revision: 534200 URL: https://svnweb.freebsd.org/changeset/ports/534200 Log: math/hs-Agda: Install emacs mode files. PR: 246254 Changes: head/math/hs-Agda/Makefile head/math/hs-Agda/pkg-plist
Should be fixed now. Bug me again, if it doesn't work for you.