msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.24k stars 1.2k forks source link

Add nokogiri #14673

Open Freed-Wu opened 1 year ago

Freed-Wu commented 1 year ago

Package name

mingw-w64-ruby-nokogiri

Brief description of package

In https://nokogiri.org/tutorials/installing_nokogiri.html#installing-using-standard-system-libraries:

Windows¶

We recommend installing Nokogiri against the MSYS2 system libraries:

ridk exec pacman -S mingw-w64-x86_64-libxslt gem install nokogiri --platform=ruby -- --use-system-libraries

Is it possible to let user pacboy -S ruby-nokogiri:x more easily?

URL for package's homepage

https://nokogiri.org

Provide a basic test case to validate the package's functionality.

No response

MINGW environments where you need the package

Are you willing to submit a PR?

No

Biswa96 commented 1 year ago

It seems that nokogiri requires many ruby packages. For example, see all the dependency hierarchy here https://archlinux.org/packages/community/x86_64/ruby-nokogiri/. I am not sure if it is worth of adding bunch of ruby packages just for this one. Interested in other opinions too.

Freed-Wu commented 1 year ago

@flavorjones

flavorjones commented 1 year ago

Hi, Nokogiri maintainer here. I'm not very familiar with the mingw package ecosystem, can someone help me understand the problem that this issue is proposing solving? Nokogiri ships precompiled windows packages already.

Freed-Wu commented 1 year ago

Sorry for late. Is the compiled windows nokogiri compiled by MSVC? msys2 use MinGW to compile package and allow user to install them by a unified package manager, which is the big difference I dare to think.

I just notice nokogiri is a dependence of jekyll and so If it is provided, it will easier for user to install jekyll so I think it should be useful that let msys2 support it.

flavorjones commented 1 year ago

@larskanis can probably help answer your questions better than I can.

ousia commented 5 months ago

It seems that nokogiri requires many ruby packages. For example, see all the dependency hierarchy here https://archlinux.org/packages/community/x86_64/ruby-nokogiri/. I am not sure if it is worth of adding bunch of ruby packages just for this one. Interested in other opinions too.

As @Freed-Wu mentioned (a year ago), it would be a great way to have Jekyll.

I was about to open an issue requesting Jekyll to be packaged and I found this.

It would be great for me (I don’t have another way to generate static sites to be hosted at GitLab Pages).

It will be also the only static site generator included with MSYS2.

I think adding Jekyll will help a lot, if you allow me the comment, @Biswa96.

Many thanks for your help.

ousia commented 5 months ago

Hi, Nokogiri maintainer here. I'm not very familiar with the mingw package ecosystem, can someone help me understand the problem that this issue is proposing solving? Nokogiri ships precompiled windows packages already.

@flavorjones, I have just landed in this issue and I’m only an average user.

This project explicitly avoids shipping precompiled binaries, but packages are submitted as source and they have to be automatically compiled by the project.

Sorry for not providing you with a direct reference, but I read that more than a year ago.

Many thanks for your help.