[mod] "npm run webfont" require fontforge & ttfautohint packages

See commit dca3bcca9::

     [mod] simple theme: include fonts

     "npm run webfont" to build the fonts directory.
     It requires fontforge and ttfautohint distro packages

     partial revert of commit 7137d28

I don't know why, but the same commit dca3bcca9 removes the fontforge &
ttfautohint packages which has been added in 7137d28.  I assume it was an
mistake of the *partial revert of commit 7137d28*.

Related-to:  https://github.com/searxng/searxng/pull/157#discussion_r654836723

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-08-02 17:10:58 +02:00
parent 34ffd08187
commit e09fd4327b
3 changed files with 16 additions and 9 deletions

View file

@ -5,6 +5,8 @@ Development Quickstart
====================== ======================
.. _npm: https://www.npmjs.com/ .. _npm: https://www.npmjs.com/
.. _fontforge: https://github.com/fontforge/fontforge
.. _ttfautohint: https://www.freetype.org/ttfautohint/doc/ttfautohint.html
Searx loves developers, just clone and start hacking. All the rest is done for Searx loves developers, just clone and start hacking. All the rest is done for
you simply by using :ref:`make <makefile>`. you simply by using :ref:`make <makefile>`.
@ -31,7 +33,12 @@ If you implement themes, you will need to compile styles and JavaScript before
make themes.all make themes.all
Don't forget to install npm_ first. Don't forget to install npm_, ttfautohint_ and fontforge_ first. To install
all system requirements of a :ref:`buildhosts` use::
sudo -H ./utils/searx.sh install buildhost
Otherwise, install only what you need at least:
.. tabs:: .. tabs::
@ -39,19 +46,19 @@ Don't forget to install npm_ first.
.. code:: sh .. code:: sh
sudo -H apt-get install npm sudo -H apt-get install npm ttfautohint fontforge
.. group-tab:: Arch Linux .. group-tab:: Arch Linux
.. code-block:: sh .. code-block:: sh
sudo -H pacman -S npm sudo -H pacman -S npm ttfautohint fontforge
.. group-tab:: Fedora / RHEL .. group-tab:: Fedora / RHEL
.. code-block:: sh .. code-block:: sh
sudo -H dnf install npm sudo -H dnf install npm ttfautohint fontforge
If you finished your *tests* you can start to commit your changes. To separate If you finished your *tests* you can start to commit your changes. To separate
the changed code from the build products first run: the changed code from the build products first run:

2
manage
View file

@ -334,7 +334,7 @@ gecko.driver() {
} }
node.env() { node.env() {
if ! required_commands npm; then if ! required_commands npm fontforge ttfautohint; then
info_msg "to install build tools use::" info_msg "to install build tools use::"
info_msg " sudo -H ./utils/searx.sh install buildhost" info_msg " sudo -H ./utils/searx.sh install buildhost"
die 1 "install needed build tools first" die 1 "install needed build tools first"

View file

@ -43,7 +43,7 @@ shellcheck"
BUILD_PACKAGES_debian="\ BUILD_PACKAGES_debian="\
firefox graphviz imagemagick texlive-xetex librsvg2-bin firefox graphviz imagemagick texlive-xetex librsvg2-bin
texlive-latex-recommended texlive-extra-utils fonts-dejavu texlive-latex-recommended texlive-extra-utils fonts-dejavu
latexmk latexmk fontforge ttfautohint
npm" npm"
# pacman packages # pacman packages
@ -55,7 +55,7 @@ shellcheck"
BUILD_PACKAGES_arch="\ BUILD_PACKAGES_arch="\
firefox graphviz imagemagick texlive-bin extra/librsvg firefox graphviz imagemagick texlive-bin extra/librsvg
texlive-core texlive-latexextra ttf-dejavu texlive-core texlive-latexextra ttf-dejavu fontforge ttfautohint
npm" npm"
# dnf packages # dnf packages
@ -69,7 +69,7 @@ BUILD_PACKAGES_fedora="\
firefox graphviz graphviz-gd ImageMagick librsvg2-tools firefox graphviz graphviz-gd ImageMagick librsvg2-tools
texlive-xetex-bin texlive-collection-fontsrecommended texlive-xetex-bin texlive-collection-fontsrecommended
texlive-collection-latex dejavu-sans-fonts dejavu-serif-fonts texlive-collection-latex dejavu-sans-fonts dejavu-serif-fonts
dejavu-sans-mono-fonts dejavu-sans-mono-fonts fontforge ttfautohint
npm" npm"
# yum packages # yum packages
@ -89,7 +89,7 @@ BUILD_PACKAGES_centos="\
firefox graphviz graphviz-gd ImageMagick librsvg2-tools firefox graphviz graphviz-gd ImageMagick librsvg2-tools
texlive-xetex-bin texlive-collection-fontsrecommended texlive-xetex-bin texlive-collection-fontsrecommended
texlive-collection-latex dejavu-sans-fonts dejavu-serif-fonts texlive-collection-latex dejavu-sans-fonts dejavu-serif-fonts
dejavu-sans-mono-fonts" dejavu-sans-mono-fonts fontforge ttfautohint"
case $DIST_ID-$DIST_VERS in case $DIST_ID-$DIST_VERS in
ubuntu-16.04|ubuntu-18.04) ubuntu-16.04|ubuntu-18.04)