xmake-io / xmake-repo

📦 An official xmake package repository
https://xrepo.xmake.io
Apache License 2.0
668 stars 392 forks source link

xrepo search libpdfio : no output #4615

Closed raphael10-collab closed 1 month ago

raphael10-collab commented 1 month ago

Xmake Version

2.9.3

Operating System Version and Architecture

Ubuntu 23.10

Describe Bug

raphy@raohy:~$ xrepo search libpdfio
The package names:
raphy@raohy:~$ xrepo search pdfio
The package names:

Expected Behavior

Being able to install libpdfio :

https://github.com/michaelrsweet/pdfio

https://www.msweet.org/pdfio/

Project Configuration

raphy@raohy:~$ cat xmake.lua 
set_languages("c99", "c++20")
add_rules("mode.debug", "mode.release")

add_requires("cosmocc")

add_syslinks("pthread")

add_requires(
    "cosmocc",
    "wxWidgets",
    "curl",
    "leptonica",
    "tesseract",
    "PDFHummus::PDFWriter",
    --"Threads",
    "OpenSSL::SSL",
    "nng",
    "json-c",
    "sqlite3",
    "stfl",
    "xml2",
    "icui18n",
    "icuuc"
)

target("isdigits")
    set_kind("binary")
    --add_files("/home/raphy/isdigits/src/*.cpp")
    add_files("/home/raphy/Grasp/src/*.cpp")

    set_toolchains("@cosmocc")

on_install(function (package)
     -- TODO
end)

Additional Information and Error Logs

None

star-hengxing commented 1 month ago

Done https://github.com/xmake-io/xmake-repo/pull/4624

raphael10-collab commented 1 month ago

@star-hengxing I do not find it :

raphy@raohy:~$ xrepo search libpdfio
The package names:
raphy@raohy:~$ 
raphy@raohy:~$ xrepo search lpdfio
The package names:
raphy@raohy:~$ 
raphy@raohy:~$ xrepo search pdfio
The package names:
raphy@raohy:~$ 
raphy@raohy:~$ xrepo search *pdfio
The package names:
raphy@raohy:~$ 

I reinstalled xmake :

raphy@raohy:~$ wget https://xmake.io/shget.text -O - | bash
--2024-07-12 11:29:29--  https://xmake.io/shget.text
Resolving xmake.io (xmake.io)... 76.223.126.88
Connecting to xmake.io (xmake.io)|76.223.126.88|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 292 [text/plain]
Saving to: ‘STDOUT’

-                          100%[=======================================>]     292  --.-KB/s    in 0s      

2024-07-12 11:29:29 (8,87 MB/s) - written to stdout [292/292]

--2024-07-12 11:29:29--  https://fastly.jsdelivr.net/gh/xmake-io/xmake@dev/scripts/get.sh
Resolving fastly.jsdelivr.net (fastly.jsdelivr.net)... 2a04:4e42:39::485, 151.101.241.229
Connecting to fastly.jsdelivr.net (fastly.jsdelivr.net)|2a04:4e42:39::485|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7945 (7,8K) [application/x-sh]
Saving to: ‘STDOUT’

-                          100%[=======================================>]   7,76K  --.-KB/s    in 0s      

2024-07-12 11:29:29 (123 MB/s) - written to stdout [7945/7945]

xmake, A cross-platform build utility based on Lua.   
Copyright (C) 2015-present Ruki Wang, tboox.org, xmake.io
                         _                            
    __  ___ __  __  __ _| | ______                    
    \ \/ / |  \/  |/ _  | |/ / __ \                   
     >  <  | \__/ | /_| |   <  ___/                   
    /_/\_\_|_|  |_|\__ \|_|\_\____|                   
                         by ruki, xmake.io            

but, still, I do not find libpdfio :

raphy@raohy:~$ xrepo search libpdfio
updating repositories .. ok
The package names:
raphy@raohy:~$ xrepo install libpdfio
error: package(libpdfio) not found!
error: execv(/home/raphy/.local/bin/xmake require -j 10 --extra={system=false} libpdfio) failed(255)
star-hengxing commented 1 month ago

Try xmake repo -u

raphael10-collab commented 1 month ago
raphy@raohy:~$ xmake repo -u
updating repositories .. ok
raphy@raohy:~$ 
raphy@raohy:~$ xrepo search libpdfio
The package names:
raphy@raohy:~$ 
star-hengxing commented 1 month ago

libpdfio -> pdfio

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


libpdfium -> pdf

raphael10-collab commented 1 month ago
raphy@raohy:~$ xrepo search pdfio
The package names:
    pdfio: 
      -> pdfio-v1.3.0: PDFio is a simple C library for reading and writing PDF files. (in xmake-repo)
raphy@raohy:~$ 
raphy@raohy:~$ xrepo install pdfio
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> pdfio v1.3.0 
please input: y (y/n/m)
y
  => download https://github.com/michaelrsweet/pdfio/archive/refs/tags/v1.3.0.tar.gz .. ok
  => install pdfio v1.3.0 .. ok